Skip to content
Myr

Update schema.rst

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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.

authored by root-11 · committed by root-11 · parent 0ce47a3 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/tutorial/schema.rst+1 added-1 removed
12 unmodified lines
13 drop table if exists entries;14 create table entries (15 id integer primary key autoincrement,16 title text not null,17 text text not null17 'text' text not null18 );1920This schema consists of a single table called `entries` and each row in21this table has an `id`, a `title` and a `text`. The `id` is an
4 unmodified lines