knex/test/integration/migrate/drop-and-recreate/02_drop_and_recreate.js

14 lines
301 B
JavaScript
Raw Permalink Normal View History

exports.up = (knex) => {
return knex.schema
.table('old_users', function(table) {
table.dropColumn('officeId');
})
.then(() => {
return knex.schema.table('old_users', function(table) {
table.string('officeId', 255);
});
});
};
exports.down = (knex) => {};