14 lines
290 B
JavaScript
14 lines
290 B
JavaScript
|
exports.up = async (knex) => {
|
||
|
await knex.schema.alterTable('batches', (table) => {
|
||
|
table.boolean('showcased')
|
||
|
.notNullable()
|
||
|
.defaultTo(true);
|
||
|
});
|
||
|
};
|
||
|
|
||
|
exports.down = async (knex) => {
|
||
|
await knex.schema.alterTable('batches', (table) => {
|
||
|
table.dropColumn('showcased');
|
||
|
});
|
||
|
};
|