16 lines
375 B
JavaScript
16 lines
375 B
JavaScript
|
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')
|
||
|
})
|
||
|
}
|