fix: sqlite migrations

This commit is contained in:
Nick committed 2019-02-22 17:05:49 -05:00
1 parent fefd60a356
commit 3743777b97
10 files changed
+440 -49

No files matched your search

+1
View File
@@ -174,6 +174,7 @@ module.exports = class Page extends Model {
}
await WIKI.models.pageHistory.addVersion({
...ogPage,
isPublished: ogPage.isPublished === true || ogPage.isPublished === 1,
action: 'updated'
})
await WIKI.models.pages.query().patch({