forked from DebaucheryLibrarian/traxxx
Added photo_count column to movies and series table.
This commit is contained in:
parent
3379e9e517
commit
e09795534c
|
@ -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');
|
||||
});
|
||||
};
|
Loading…
Reference in New Issue