mirror of
https://github.com/outline/outline.git
synced 2026-06-28 18:54:24 +03:00
20 lines
562 B
JavaScript
20 lines
562 B
JavaScript
"use strict";
|
|
|
|
/** @type {import('sequelize-cli').Migration} */
|
|
module.exports = {
|
|
async up(queryInterface, Sequelize) {
|
|
await queryInterface.sequelize.transaction(async transaction => {
|
|
await queryInterface.addColumn("apiKeys", "scope", {
|
|
type: Sequelize.ARRAY(Sequelize.STRING),
|
|
allowNull: true,
|
|
}, { transaction });
|
|
});
|
|
},
|
|
|
|
async down(queryInterface) {
|
|
await queryInterface.sequelize.transaction(async transaction => {
|
|
await queryInterface.removeColumn("apiKeys", "scope", { transaction });
|
|
});
|
|
},
|
|
};
|