feat: delete page
This commit is contained in:
1 parent
faa1f389d9
commit
658c105ab5
24 files changed
+369
-120
No files matched your search
@@ -0,0 +1,15 @@
|
||||
exports.up = knex => {
|
||||
return knex.schema
|
||||
.table('pageHistory', table => {
|
||||
table.string('action').defaultTo('updated')
|
||||
table.dropForeign('pageId')
|
||||
})
|
||||
}
|
||||
|
||||
exports.down = knex => {
|
||||
return knex.schema
|
||||
.table('pageHistory', table => {
|
||||
table.dropColumn('action')
|
||||
table.integer('pageId').unsigned().references('id').inTable('pages')
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user