Added archived column to stashes.

This commit is contained in:
DebaucheryLibrarian
2026-07-26 03:28:27 +02:00
parent f34de8d1b0
commit ea61b45a87

View File

@@ -0,0 +1,15 @@
exports.up = async function(knex) {
await knex.schema.alterTable('stashes', (table) => {
table.boolean('archived')
.notNullable()
.defaultTo(false);
table.check('NOT ("primary" AND archived)', [], 'stashes_not_primary_and_archived');
});
};
exports.down = async function(knex) {
await knex.schema.alterTable('stashes', (table) => {
table.dropColumn('archived');
});
};