forked from DebaucheryLibrarian/traxxx
Added migration to repo.
This commit is contained in:
21
migrations/20250404051102_metadata.js
Normal file
21
migrations/20250404051102_metadata.js
Normal file
@@ -0,0 +1,21 @@
|
||||
exports.up = async function(knex) {
|
||||
await knex.schema.alterTable('alerts', (table) => {
|
||||
table.json('meta');
|
||||
});
|
||||
|
||||
await knex.schema.alterTable('stashes', (table) => {
|
||||
table.text('comment');
|
||||
table.json('meta');
|
||||
});
|
||||
};
|
||||
|
||||
exports.down = async function(knex) {
|
||||
await knex.schema.alterTable('alerts', (table) => {
|
||||
table.dropColumn('meta');
|
||||
});
|
||||
|
||||
await knex.schema.alterTable('stashes', (table) => {
|
||||
table.dropColumn('comment');
|
||||
table.dropColumn('meta');
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user