forked from DebaucheryLibrarian/traxxx
Added photo_count column to movies and series table.
This commit is contained in:
19
migrations/20231216015820_movies_series_photo_count.js
Normal file
19
migrations/20231216015820_movies_series_photo_count.js
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
exports.up = async (knex) => {
|
||||||
|
await knex.schema.alterTable('movies', (table) => {
|
||||||
|
table.integer('photo_count');
|
||||||
|
});
|
||||||
|
|
||||||
|
await knex.schema.alterTable('series', (table) => {
|
||||||
|
table.integer('photo_count');
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
exports.down = async (knex) => {
|
||||||
|
await knex.schema.alterTable('movies', (table) => {
|
||||||
|
table.dropColumn('photo_count');
|
||||||
|
});
|
||||||
|
|
||||||
|
await knex.schema.alterTable('series', (table) => {
|
||||||
|
table.dropColumn('photo_count');
|
||||||
|
});
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user