Files
traxxx/migrations/20250404051102_metadata.js
DebaucheryLibrarian 0dc7c5572a Added migration to repo.
2025-04-04 05:37:18 +02:00

22 lines
473 B
JavaScript

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');
});
};