summaryrefslogtreecommitdiff
path: root/lib/migrations/20180209120907-longtext-of-authorship.js
diff options
context:
space:
mode:
authorSheogorath2019-08-12 14:40:30 +0200
committerGitHub2019-08-12 14:40:30 +0200
commitec83605f296313920a2382f81254bd17717b779e (patch)
treeb6c7818bb3cf9ba5131d8a79a4a58b5a8e99dbe2 /lib/migrations/20180209120907-longtext-of-authorship.js
parent478062b9aa8f261facb1e942822b57f36e17926a (diff)
parent6280e92d1042967e16e68a50b6364de566e266ef (diff)
Merge pull request #141 from alangecker/fix/migration-should-return-promise
fix: migration should return promise
Diffstat (limited to 'lib/migrations/20180209120907-longtext-of-authorship.js')
-rw-r--r--lib/migrations/20180209120907-longtext-of-authorship.js12
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 })
}
}