codimd/lib/migrations/20180306150303-fix-enum.ts
Raccoon 147c20064f
ts: all migrations
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:28 +08:00

10 lines
407 B
TypeScript

export = {
up: async function (queryInterface, Sequelize) {
await queryInterface.changeColumn('Notes', 'permission', {type: Sequelize.ENUM('freely', 'editable', 'limited', 'locked', 'protected', 'private')})
},
down: async function (queryInterface, Sequelize) {
await queryInterface.changeColumn('Notes', 'permission', {type: Sequelize.ENUM('freely', 'editable', 'locked', 'private')})
}
}