chore: Unify backend express project into ESM (#281)
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
'use strict';
|
||||
export async function up(queryInterface) {
|
||||
// Rename column 'path' to 'filename' in 'Attachments' table
|
||||
await queryInterface.renameColumn('Attachments', 'path', 'filename');
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
up: async (queryInterface) => {
|
||||
// Rename column 'path' to 'filename' in 'Attachments' table
|
||||
await queryInterface.renameColumn('Attachments', 'path', 'filename');
|
||||
},
|
||||
|
||||
down: async (queryInterface) => {
|
||||
// Revert column name from 'filename' back to 'path'
|
||||
await queryInterface.renameColumn('Attachments', 'filename', 'path');
|
||||
},
|
||||
};
|
||||
export async function down(queryInterface) {
|
||||
// Revert column name from 'filename' back to 'path'
|
||||
await queryInterface.renameColumn('Attachments', 'filename', 'path');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user