Added attributes migration.

This commit is contained in:
DebaucheryLibrarian 2026-02-03 05:34:14 +01:00
parent 9754f9e9af
commit 37b92209f0
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
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');
});
};