diff options
author | chandi | 2019-08-12 14:08:31 +0200 |
---|---|---|
committer | chandi | 2019-08-12 14:13:34 +0200 |
commit | 6280e92d1042967e16e68a50b6364de566e266ef (patch) | |
tree | b6c7818bb3cf9ba5131d8a79a4a58b5a8e99dbe2 /lib/migrations/20171009121200-longtext-for-mysql.js | |
parent | 478062b9aa8f261facb1e942822b57f36e17926a (diff) |
fix: migration should return promise
Signed-off-by: chandi <git@chandi.it>
Diffstat (limited to '')
-rw-r--r-- | lib/migrations/20171009121200-longtext-for-mysql.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/migrations/20171009121200-longtext-for-mysql.js b/lib/migrations/20171009121200-longtext-for-mysql.js index cb9fc8a5..96bf7e87 100644 --- a/lib/migrations/20171009121200-longtext-for-mysql.js +++ b/lib/migrations/20171009121200-longtext-for-mysql.js @@ -1,16 +1,16 @@ 'use strict' module.exports = { - up: function (queryInterface, Sequelize) { - queryInterface.changeColumn('Notes', 'content', { type: Sequelize.TEXT('long') }) - queryInterface.changeColumn('Revisions', 'patch', { type: Sequelize.TEXT('long') }) - queryInterface.changeColumn('Revisions', 'content', { type: Sequelize.TEXT('long') }) - queryInterface.changeColumn('Revisions', 'lastContent', { type: Sequelize.TEXT('long') }) + 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') }) }, - down: function (queryInterface, Sequelize) { - queryInterface.changeColumn('Notes', 'content', { type: Sequelize.TEXT }) - queryInterface.changeColumn('Revisions', 'patch', { type: Sequelize.TEXT }) - queryInterface.changeColumn('Revisions', 'content', { type: Sequelize.TEXT }) - queryInterface.changeColumn('Revisions', 'lastContent', { type: Sequelize.TEXT }) + 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 }) } } |