forked from orbit-oss/flask
Changing string to text in schema files
This commit is contained in:
parent
2af0ffaef6
commit
cc82feb084
3 changed files with 8 additions and 8 deletions
|
|
@ -13,8 +13,8 @@ the just created `flaskr` folder:
|
|||
drop table if exists entries;
|
||||
create table entries (
|
||||
id integer primary key autoincrement,
|
||||
title string not null,
|
||||
text string not null
|
||||
title text not null,
|
||||
text text not null
|
||||
);
|
||||
|
||||
This schema consists of a single table called `entries` and each row in
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
drop table if exists entries;
|
||||
create table entries (
|
||||
id integer primary key autoincrement,
|
||||
title string not null,
|
||||
text string not null
|
||||
title text not null,
|
||||
text text not null
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
drop table if exists user;
|
||||
create table user (
|
||||
user_id integer primary key autoincrement,
|
||||
username string not null,
|
||||
email string not null,
|
||||
pw_hash string not null
|
||||
username text not null,
|
||||
email text not null,
|
||||
pw_hash text not null
|
||||
);
|
||||
|
||||
drop table if exists follower;
|
||||
|
|
@ -16,6 +16,6 @@ drop table if exists message;
|
|||
create table message (
|
||||
message_id integer primary key autoincrement,
|
||||
author_id integer not null,
|
||||
text string not null,
|
||||
text text not null,
|
||||
pub_date integer
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue