mirror of
https://github.com/knex/knex.git
synced 2025-07-31 12:52:02 +00:00
14 lines
301 B
JavaScript
14 lines
301 B
JavaScript
![]() |
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) => {};
|