14 lines
279 B
JavaScript
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')
|
||
|
})
|
||
|
}
|