Storing photo counts.
This commit is contained in:
11
migrations/20231107044032_photocount.js
Normal file
11
migrations/20231107044032_photocount.js
Normal file
@@ -0,0 +1,11 @@
|
||||
exports.up = async (knex) => {
|
||||
await knex.schema.alterTable('releases', (table) => {
|
||||
table.integer('photo_count');
|
||||
});
|
||||
};
|
||||
|
||||
exports.down = async (knex) => {
|
||||
await knex.schema.alterTable('releases', (table) => {
|
||||
table.dropColumn('photo_count');
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user