add hidden date field for sorting posts

This commit is contained in:
2022-09-07 18:22:29 -06:00
parent 9a6b49a71b
commit 7f61bd7bdc
3 changed files with 8 additions and 6 deletions

View File

@@ -29,7 +29,7 @@ module Q = struct
content text NOT NULL,
date text NOT NULL,
active TINYINT DEFAULT 1,
hidden_date DEFAULT (unixepoch('now'))
hidden_date timestamp DEFAULT (strftime('%s', 'now')))
|eos}
let create_blog_post =