mirror of
https://github.com/knex/knex.git
synced 2025-07-12 19:40:33 +00:00
12 lines
305 B
JavaScript
12 lines
305 B
JavaScript
exports.up = (knex) => {
|
|
return knex.schema.alterTable('drop_with_default_constraint', (table) => {
|
|
table.dropColumn('foo');
|
|
});
|
|
};
|
|
|
|
exports.down = (knex) => {
|
|
return knex.schema.alterTable('drop_with_default_constraint', (table) => {
|
|
table.integer('foo').notNullable().default(0);
|
|
});
|
|
};
|