summaryrefslogtreecommitdiffhomepage
path: root/apioforum/db.py
diff options
context:
space:
mode:
Diffstat (limited to 'apioforum/db.py')
-rw-r--r--apioforum/db.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/apioforum/db.py b/apioforum/db.py
index 9db27db..b138aae 100644
--- a/apioforum/db.py
+++ b/apioforum/db.py
@@ -42,6 +42,10 @@ CREATE TABLE posts (
CREATE INDEX posts_thread_idx ON posts (thread);
""",
+"""
+ALTER TABLE posts ADD COLUMN edited INT NOT NULL DEFAULT 0;
+ALTER TABLE posts ADD COLUMN updated TIMESTAMP;
+""",
]
def init_db():