codimd/lib/migrations/20180209120907-longtext-of-authorship.ts

12 lines
491 B
TypeScript
Raw Normal View History

export = {
up: async function (queryInterface, Sequelize) {
await queryInterface.changeColumn('Notes', 'authorship', {type: Sequelize.TEXT('long')})
await queryInterface.changeColumn('Revisions', 'authorship', {type: Sequelize.TEXT('long')})
},
down: async function (queryInterface, Sequelize) {
await queryInterface.changeColumn('Notes', 'authorship', {type: Sequelize.TEXT})
await queryInterface.changeColumn('Revisions', 'authorship', {type: Sequelize.TEXT})
}
}