Skip to content

Commit ab3d9d1

Browse files
committed
Merge pull request pallets#655 from oliversong/master
SQLite doesn't recognize data type "string"
2 parents e101655 + cc82feb commit ab3d9d1

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

docs/tutorial/schema.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ the just created `flaskr` folder:
1313
drop table if exists entries;
1414
create table entries (
1515
id integer primary key autoincrement,
16-
title string not null,
17-
text string not null
16+
title text not null,
17+
text text not null
1818
);
1919

2020
This schema consists of a single table called `entries` and each row in

examples/flaskr/schema.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
drop table if exists entries;
22
create table entries (
33
id integer primary key autoincrement,
4-
title string not null,
5-
text string not null
4+
title text not null,
5+
text text not null
66
);

examples/minitwit/schema.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
drop table if exists user;
22
create table user (
33
user_id integer primary key autoincrement,
4-
username string not null,
5-
email string not null,
6-
pw_hash string not null
4+
username text not null,
5+
email text not null,
6+
pw_hash text not null
77
);
88

99
drop table if exists follower;
@@ -16,6 +16,6 @@ drop table if exists message;
1616
create table message (
1717
message_id integer primary key autoincrement,
1818
author_id integer not null,
19-
text string not null,
19+
text text not null,
2020
pub_date integer
2121
);

0 commit comments

Comments
 (0)