aboutsummaryrefslogtreecommitdiffstats
path: root/schema.sql
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2012-11-09 23:41:01 +0100
committerThibaut Horel <thibaut.horel@gmail.com>2012-11-09 23:41:01 +0100
commit76d58425de6a1e3505c777921b1e58bf03370366 (patch)
tree602fff4b0de26eae33dee7378426cee9f375b5d9 /schema.sql
parent867e8acae887638beb5107fb7a5c9f3e403d06e0 (diff)
downloadfamille-flask-76d58425de6a1e3505c777921b1e58bf03370366.tar.gz
Import old database.
The database is in the file new.db. dump,sql contains a sqlite3 compliant dump. To regenerate the database from the dump: $ sqlite3 old.db < dump.sql $ python createdb.py -s schema.sql -d new.db $ python import.py old.db new.db
Diffstat (limited to 'schema.sql')
-rw-r--r--schema.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/schema.sql b/schema.sql
index 6c8c721..0248ce7 100644
--- a/schema.sql
+++ b/schema.sql
@@ -30,7 +30,7 @@ drop table if exists comments;
create table comments (
id integer primary key autoincrement,
date string default (strftime('%Y-%m-%dT%H:%M:%SZ','now')),
- content string not null,
+ content string,
content_cache string not null,
user_id integer,
news_id integer,