diff options
Diffstat (limited to 'lib/migrations/20180209120907-longtext-of-authorship.js')
-rw-r--r-- | lib/migrations/20180209120907-longtext-of-authorship.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/migrations/20180209120907-longtext-of-authorship.js b/lib/migrations/20180209120907-longtext-of-authorship.js index c5d8a1ef..04810009 100644 --- a/lib/migrations/20180209120907-longtext-of-authorship.js +++ b/lib/migrations/20180209120907-longtext-of-authorship.js @@ -1,13 +1,13 @@ 'use strict' module.exports = { - up: function (queryInterface, Sequelize) { - queryInterface.changeColumn('Notes', 'authorship', { type: Sequelize.TEXT('long') }) - queryInterface.changeColumn('Revisions', 'authorship', { type: Sequelize.TEXT('long') }) + up: async function (queryInterface, Sequelize) { + await queryInterface.changeColumn('Notes', 'authorship', { type: Sequelize.TEXT('long') }) + await queryInterface.changeColumn('Revisions', 'authorship', { type: Sequelize.TEXT('long') }) }, - down: function (queryInterface, Sequelize) { - queryInterface.changeColumn('Notes', 'authorship', { type: Sequelize.TEXT }) - queryInterface.changeColumn('Revisions', 'authorship', { type: Sequelize.TEXT }) + down: async function (queryInterface, Sequelize) { + await queryInterface.changeColumn('Notes', 'authorship', { type: Sequelize.TEXT }) + await queryInterface.changeColumn('Revisions', 'authorship', { type: Sequelize.TEXT }) } } |