This repository has been archived on 2022-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
IcyNet.eu/migrations/20170922234831_cleanup.js

23 lines
468 B
JavaScript

exports.up = function (knex, Promise) {
return Promise.all([
knex.schema.table('users', (table) => {
table.string('uuid', 36)
}),
knex.schema.table('news', (table) => {
table.dropColumn('slug')
})
])
}
exports.down = function (knex, Promise) {
return Promise.all([
knex.schema.table('users', (table) => {
table.dropColumn('uuid')
}),
knex.schema.table('news', (table) => {
table.string('slug')
})
])
}