* chore: Migrations * chore: Add recording of share link views * feat: Add display of share link accessed date in admin * translations * test * translations, admin pagination
15 lines
331 B
JavaScript
15 lines
331 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
up: async (queryInterface, Sequelize) => {
|
|
await queryInterface.addColumn("shares", "lastAccessedAt", {
|
|
type: Sequelize.DATE,
|
|
allowNull: true,
|
|
});
|
|
},
|
|
|
|
down: async (queryInterface, Sequelize) => {
|
|
await queryInterface.removeColumn("shares", "lastAccessedAt");
|
|
}
|
|
};
|