prepare post history

This commit is contained in:
2025-05-23 21:29:22 +03:00
parent 3dde2ba49a
commit 738b4163a8
2 changed files with 15 additions and 4 deletions

View File

@ -62,5 +62,10 @@ return {
[8] = function ()
schema.add_column("topics", "sort_order", types.integer{default = 0})
db.query("UPDATE topics SET sort_order = (SELECT COUNT(*) FROM topics t2 WHERE t2.ROWID <= topics.ROWID)")
end
end,
[9] = function ()
schema.add_column("post_history", "original_markup", types.text{null = false})
schema.add_column("post_history", "markup_language", types.text{default = "babycode"})
end,
}