20 lines
433 B
JavaScript
20 lines
433 B
JavaScript
exports.up = async (knex) => {
|
|
await knex.schema.alterTable('releases', (table) => {
|
|
table.json('attributes');
|
|
});
|
|
|
|
await knex.schema.alterTable('movies', (table) => {
|
|
table.json('attributes');
|
|
});
|
|
};
|
|
|
|
exports.down = async (knex) => {
|
|
await knex.schema.alterTable('releases', (table) => {
|
|
table.dropColumn('attributes');
|
|
});
|
|
|
|
await knex.schema.alterTable('movies', (table) => {
|
|
table.dropColumn('attributes');
|
|
});
|
|
};
|