39195-vm/backend/src/db/migrations/1773497460363-add-sizeInBytes-to-files.js
2026-03-14 14:33:16 +00:00

15 lines
325 B
JavaScript

'use strict';
module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.addColumn('files', 'sizeInBytes', {
type: Sequelize.INTEGER,
allowNull: true,
});
},
down: async (queryInterface, Sequelize) => {
await queryInterface.removeColumn('files', 'sizeInBytes');
}
};