server/migrations/20260411000000-add-title-and-iconUrl-to-shares.js
Rama main · réplica de lectura del repositorio original.
"use strict";
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.addColumn("shares", "title", {
type: Sequelize.STRING,
allowNull: true,
});
await queryInterface.addColumn("shares", "iconUrl", {
type: Sequelize.STRING(4096),
allowNull: true,
});
},
async down(queryInterface) {
await queryInterface.removeColumn("shares", "title");
await queryInterface.removeColumn("shares", "iconUrl");
},
};