mirror of
https://github.com/outline/outline.git
synced 2026-11-27 16:08:58 +03:00
migration: Remove type column
This commit is contained in:
1 parent
bcabd8ef3f
commit
effa534057
1 file changed
+14
@@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
up: async (queryInterface, Sequelize) => {
|
||||
await queryInterface.removeColumn('collections', 'type');
|
||||
},
|
||||
|
||||
down: async (queryInterface, Sequelize) => {
|
||||
await queryInterface.addColumn('collections', 'type', {
|
||||
type: Sequelize.STRING,
|
||||
defaultValue: "atlas"
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user