aboutsummaryrefslogtreecommitdiffstats
path: root/schema.sql
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2012-11-08 01:34:02 +0100
committerThibaut Horel <thibaut.horel@gmail.com>2012-11-08 01:34:02 +0100
commit101f820153cdb047d13166672d3f46cfef31677d (patch)
treecf1806735201f39a1b6b88d179ed16ce1b97ea4f /schema.sql
parent9ab593bcd52fcbe87f1be463ca5f09a757d1128f (diff)
downloadfamille-flask-101f820153cdb047d13166672d3f46cfef31677d.tar.gz
Keep both rst and html rendered content in the database. News edit feature
Diffstat (limited to 'schema.sql')
-rw-r--r--schema.sql2
1 files changed, 2 insertions, 0 deletions
diff --git a/schema.sql b/schema.sql
index 43e4822..bae55ab 100644
--- a/schema.sql
+++ b/schema.sql
@@ -11,6 +11,7 @@ create table news (
title string not null,
date string default (strftime('%Y-%m-%dT%H:%M:%S','now')),
content string not null,
+ content_cache string not null,
user_id integer,
FOREIGN KEY(user_id) REFERENCES users(id)
);
@@ -20,6 +21,7 @@ create table comments (
id integer primary key autoincrement,
date string default (strftime('%Y-%m-%dT%H:%M:%S','now')),
content string not null,
+ content_cache string not null,
user_id integer,
news_id integer,
FOREIGN KEY(user_id) REFERENCES users(id),