1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-24 15:49:46 +02:00

ref: Little refactoring

This commit is contained in:
Maksim Eltyshev 2023-01-08 22:10:41 +01:00
parent 6021d67a00
commit b58b91baa1
8 changed files with 14 additions and 17 deletions

View file

@ -63,11 +63,9 @@ module.exports.down = async (knex) => {
.where('id', attachment.id);
}
await knex.schema.table('attachment', (table) => {
return knex.schema.table('attachment', (table) => {
table.dropColumn('image');
});
return knex.schema.alterTable('attachment', (table) => {
table.boolean('is_image').notNullable().alter();
table.dropNullable('is_image');
});
};