Files
starr-philproperties/database/migrations/20260101000050-add-thumbnail-storage-key-to-assets.js
T
kennethobsequio 439bb33f77 ready to test
Testing

Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
2026-06-22 10:06:58 +08:00

15 lines
379 B
JavaScript

'use strict';
module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.addColumn('assets', 'thumbnail_storage_key', {
type: Sequelize.STRING(512),
allowNull: true,
after: 'thumbnail_url',
});
},
down: async (queryInterface) => {
await queryInterface.removeColumn('assets', 'thumbnail_storage_key');
},
};