Permalink
Browse files

Merge pull request #655 from oliversong/master

SQLite doesn't recognize data type "string"
  • Loading branch information...
2 parents e101655 + cc82feb commit ab3d9d12c6f16712895735903cfbb136f22aeeec @mitsuhiko mitsuhiko committed Dec 27, 2012
Showing with 8 additions and 8 deletions.
  1. +2 −2 docs/tutorial/schema.rst
  2. +2 −2 examples/flaskr/schema.sql
  3. +4 −4 examples/minitwit/schema.sql
@@ -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
);

0 comments on commit ab3d9d1

Please sign in to comment.