2017-10-16 04:12:39 -04:00
|
|
|
'use strict'
|
|
|
|
module.exports = {
|
2019-08-12 08:08:31 -04: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 04:12:39 -04:00
|
|
|
},
|
|
|
|
|
2019-08-12 08:08:31 -04: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 04:12:39 -04:00
|
|
|
}
|
|
|
|
}
|