wikijs-fork/server/db/migrations/2.0.0-beta.11.js
2019-02-02 12:09:25 -05:00

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')
})
}