Skip to content

Commit

Permalink
Merge pull request #655 from oliversong/master
Browse files Browse the repository at this point in the history
SQLite doesn't recognize data type "string"
  • Loading branch information
mitsuhiko committed Dec 27, 2012
2 parents e101655 + cc82feb commit ab3d9d1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/tutorial/schema.rst
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ the just created `flaskr` folder:
drop table if exists entries; drop table if exists entries;
create table entries ( create table entries (
id integer primary key autoincrement, id integer primary key autoincrement,
title string not null, title text not null,
text string not null text text not null
); );


This schema consists of a single table called `entries` and each row in This schema consists of a single table called `entries` and each row in
Expand Down
4 changes: 2 additions & 2 deletions examples/flaskr/schema.sql
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,6 @@
drop table if exists entries; drop table if exists entries;
create table entries ( create table entries (
id integer primary key autoincrement, id integer primary key autoincrement,
title string not null, title text not null,
text string not null text text not null
); );
8 changes: 4 additions & 4 deletions examples/minitwit/schema.sql
Original file line number Original file line Diff line number Diff line change
@@ -1,9 +1,9 @@
drop table if exists user; drop table if exists user;
create table user ( create table user (
user_id integer primary key autoincrement, user_id integer primary key autoincrement,
username string not null, username text not null,
email string not null, email text not null,
pw_hash string not null pw_hash text not null
); );


drop table if exists follower; drop table if exists follower;
Expand All @@ -16,6 +16,6 @@ drop table if exists message;
create table message ( create table message (
message_id integer primary key autoincrement, message_id integer primary key autoincrement,
author_id integer not null, author_id integer not null,
text string not null, text text not null,
pub_date integer pub_date integer
); );

0 comments on commit ab3d9d1

Please sign in to comment.