Added archived column to stashes.
This commit is contained in:
15
migrations/20260726032348_stashes_archive.js
Normal file
15
migrations/20260726032348_stashes_archive.js
Normal 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');
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user