Added photo_count to movies table.
This commit is contained in:
parent
560ff103ce
commit
08fd69af39
|
@ -2,10 +2,18 @@ exports.up = async (knex) => {
|
||||||
await knex.schema.alterTable('releases', (table) => {
|
await knex.schema.alterTable('releases', (table) => {
|
||||||
table.integer('photo_count');
|
table.integer('photo_count');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
await knex.schema.alterTable('movies', (table) => {
|
||||||
|
table.integer('photo_count');
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.down = async (knex) => {
|
exports.down = async (knex) => {
|
||||||
await knex.schema.alterTable('releases', (table) => {
|
await knex.schema.alterTable('releases', (table) => {
|
||||||
table.dropColumn('photo_count');
|
table.dropColumn('photo_count');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
await knex.schema.alterTable('movies', (table) => {
|
||||||
|
table.dropColumn('photo_count');
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue