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

14 lines
279 B
JavaScript

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