mirror of
https://github.com/knex/knex.git
synced 2025-07-15 13:01:00 +00:00
17 lines
384 B
JavaScript
17 lines
384 B
JavaScript
exports.up = (knex) => {
|
|
return knex.schema
|
|
.withSchema('dummy_schema')
|
|
.table('old_users', function (table) {
|
|
table.dropColumn('officeId');
|
|
})
|
|
.then(() => {
|
|
return knex.schema
|
|
.withSchema('dummy_schema')
|
|
.table('old_users', function (table) {
|
|
table.string('officeId', 255);
|
|
});
|
|
});
|
|
};
|
|
|
|
exports.down = (knex) => {};
|