Browse Source

Update schema.rst

The error is that sqlite3 needs escaping on the database column 'text' in the line:
text text not null
so that it becomes:
'text' text not null

The example on mitsuhiko/flask is correct and helped me detecting the mistake.
pull/1099/head
root-11 11 years ago
parent
commit
2d992e7f13
  1. 2
      docs/tutorial/schema.rst

2
docs/tutorial/schema.rst

@ -14,7 +14,7 @@ named `schema.sql` in the just created `flaskr` folder:
create table entries ( create table entries (
id integer primary key autoincrement, id integer primary key autoincrement,
title text not null, title text not null,
text text 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

Loading…
Cancel
Save