2017-10-16 08:12:39 +00:00
|
|
|
'use strict'
|
|
|
|
module.exports = {
|
2019-08-12 12:08:31 +00:00
|
|
|
up: async function (queryInterface, Sequelize) {
|
|
|
|
await queryInterface.changeColumn('Notes', 'content', { type: Sequelize.TEXT('long') })
|
|
|
|
await queryInterface.changeColumn('Revisions', 'patch', { type: Sequelize.TEXT('long') })
|
|
|
|
await queryInterface.changeColumn('Revisions', 'content', { type: Sequelize.TEXT('long') })
|
|
|
|
await queryInterface.changeColumn('Revisions', 'lastContent', { type: Sequelize.TEXT('long') })
|
2017-10-16 08:12:39 +00:00
|
|
|
},
|
|
|
|
|
2019-08-12 12:08:31 +00:00
|
|
|
down: async function (queryInterface, Sequelize) {
|
|
|
|
await queryInterface.changeColumn('Notes', 'content', { type: Sequelize.TEXT })
|
|
|
|
await queryInterface.changeColumn('Revisions', 'patch', { type: Sequelize.TEXT })
|
|
|
|
await queryInterface.changeColumn('Revisions', 'content', { type: Sequelize.TEXT })
|
|
|
|
await queryInterface.changeColumn('Revisions', 'lastContent', { type: Sequelize.TEXT })
|
2017-10-16 08:12:39 +00:00
|
|
|
}
|
|
|
|
}
|