mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
19 lines
497 B
JavaScript
19 lines
497 B
JavaScript
"use strict";
|
|
|
|
/** @type {import('sequelize-cli').Migration} */
|
|
module.exports = {
|
|
async up(queryInterface) {
|
|
await queryInterface.addIndex("revisions", ["createdAt"], {
|
|
concurrently: true,
|
|
});
|
|
await queryInterface.addIndex("user_permissions", ["sourceId"], {
|
|
concurrently: true,
|
|
});
|
|
},
|
|
|
|
async down(queryInterface) {
|
|
await queryInterface.removeIndex("user_permissions", ["sourceId"]);
|
|
await queryInterface.removeIndex("revisions", ["createdAt"]);
|
|
},
|
|
};
|