1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 20:59:44 +02:00
planka/server/db/migrations/20241109164629_add_url_to_attachment_table.js
2024-11-11 14:59:18 +01:00

15 lines
367 B
JavaScript

module.exports.up = async (knex) => {
return knex.schema.table('attachment', (table) => {
table.text('type');
table.text('url');
table.text('thumb');
});
};
module.exports.down = async (knex) => {
return knex.schema.table('attachment', (table) => {
table.dropColumn('type');
table.dropColumn('url');
table.dropColumn('thumb');
});
};