feat: Track attachments access (#4416)
This commit is contained in:
13
server/migrations/20221112162341-attachment-tracking.js
Normal file
13
server/migrations/20221112162341-attachment-tracking.js
Normal file
@@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = {
|
||||
up: async (queryInterface, Sequelize) => {
|
||||
await queryInterface.addColumn("attachments", "lastAccessedAt", {
|
||||
type: Sequelize.DATE,
|
||||
allowNull: true,
|
||||
});
|
||||
},
|
||||
down: async (queryInterface) => {
|
||||
await queryInterface.removeColumn("attachments", "lastAccessedAt");
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user