Added showcase flag to batch table.
This commit is contained in:
13
migrations/20230725031547_stealth_batch.js
Normal file
13
migrations/20230725031547_stealth_batch.js
Normal file
@@ -0,0 +1,13 @@
|
||||
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');
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user