36 lines
830 B
JavaScript
36 lines
830 B
JavaScript
exports.up = async (knex) => {
|
|
await knex.schema.alterTable('actors', (table) => {
|
|
table.integer('leg');
|
|
table.integer('foot');
|
|
table.integer('thigh');
|
|
});
|
|
|
|
await knex.schema.alterTable('actors_profiles', (table) => {
|
|
table.integer('leg');
|
|
table.integer('foot');
|
|
table.integer('thigh');
|
|
});
|
|
|
|
await knex.schema.alterTable('releases', (table) => {
|
|
table.integer('video_count');
|
|
});
|
|
};
|
|
|
|
exports.down = async (knex) => {
|
|
await knex.schema.alterTable('actors', (table) => {
|
|
table.dropColumn('leg');
|
|
table.dropColumn('foot');
|
|
table.dropColumn('thigh');
|
|
});
|
|
|
|
await knex.schema.alterTable('actors_profiles', (table) => {
|
|
table.dropColumn('leg');
|
|
table.dropColumn('foot');
|
|
table.dropColumn('thigh');
|
|
});
|
|
|
|
await knex.schema.alterTable('releases', (table) => {
|
|
table.dropColumn('video_count');
|
|
});
|
|
};
|