Files
outline/server/migrations/20210218111237-add-collection-index.js
T
2021-02-18 17:35:56 +05:30

15 lines
326 B
JavaScript

"use strict";
module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.addColumn("collections", "index", {
type: Sequelize.TEXT,
defaultValue: null,
});
},
down: async (queryInterface, Sequelize) => {
await queryInterface.removeColumn("collections", "index");
},
};