2.0.0-beta.242.js 279 B

12345678910111213
  1. exports.up = knex => {
  2. return knex.schema
  3. .table('users', table => {
  4. table.boolean('mustChangePwd').notNullable().defaultTo(false)
  5. })
  6. }
  7. exports.down = knex => {
  8. return knex.schema
  9. .table('users', table => {
  10. table.dropColumn('mustChangePwd')
  11. })
  12. }