1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-19 13:19:44 +02:00
planka/server/db/migrations/20241109164629_add_url_to_attachment_table.js

16 lines
367 B
JavaScript
Raw Normal View History

2024-11-09 18:49:26 +07:00
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');
});
};