wikijs-fork/server/db/beta/migrations-sqlite/2.0.0-beta.242.js

14 lines
279 B
JavaScript
Raw Normal View History

2019-07-29 04:50:03 +00:00
exports.up = knex => {
return knex.schema
.table('users', table => {
table.boolean('mustChangePwd').notNullable().defaultTo(false)
})
}
exports.down = knex => {
return knex.schema
.table('users', table => {
table.dropColumn('mustChangePwd')
})
}