Added showcase flag to batch table.

This commit is contained in:
DebaucheryLibrarian
2023-07-25 03:22:24 +02:00
parent 1082effc17
commit b7a31b7933
3 changed files with 22 additions and 3 deletions

View 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');
});
};