Files
outline/server/migrations/20230920032853-add-key-index.js
T
Tom Moor b01eb7ac57 Add index on attachments.key
Remove assumption of attachment ID in key
2023-09-19 23:59:56 -04:00

12 lines
240 B
JavaScript

"use strict";
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.addIndex("attachments", ["key"]);
},
async down(queryInterface) {
await queryInterface.removeIndex("attachments", ["key"]);
},
};