2.0.0-beta.242.js 279 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
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')
    })
}