mirror of
https://github.com/outline/outline.git
synced 2026-06-27 18:24:23 +03:00
41af3a107e
* chore: Remove emoji column from documents and revisions * fix: Incorrect icon color on collections in share menu * Update types.ts --------- Co-authored-by: Tom Moor <tom.moor@gmail.com> Co-authored-by: Tom Moor <tom@getoutline.com>
39 lines
915 B
JavaScript
39 lines
915 B
JavaScript
"use strict";
|
|
|
|
/** @type {import('sequelize-cli').Migration} */
|
|
module.exports = {
|
|
async up(queryInterface, Sequelize) {
|
|
await queryInterface.sequelize.transaction(async transaction => {
|
|
await queryInterface.removeColumn("documents", "emoji", { transaction });
|
|
await queryInterface.removeColumn("revisions", "emoji", { transaction });
|
|
});
|
|
},
|
|
|
|
async down(queryInterface, Sequelize) {
|
|
await queryInterface.sequelize.transaction(async transaction => {
|
|
await queryInterface.addColumn(
|
|
"documents",
|
|
"emoji",
|
|
{
|
|
type: Sequelize.STRING,
|
|
allowNull: true,
|
|
},
|
|
{
|
|
transaction,
|
|
}
|
|
);
|
|
await queryInterface.addColumn(
|
|
"revisions",
|
|
"emoji",
|
|
{
|
|
type: Sequelize.STRING,
|
|
allowNull: true,
|
|
},
|
|
{
|
|
transaction,
|
|
}
|
|
);
|
|
});
|
|
},
|
|
};
|