summaryrefslogtreecommitdiff
path: root/lib/migrations/20160703062241-support-authorship.js
diff options
context:
space:
mode:
authorChristoph (Sheogorath) Kern2018-11-17 12:34:15 +0100
committerGitHub2018-11-17 12:34:15 +0100
commit1e2bf3698f8cb328364487081b62e48538a2f433 (patch)
tree2ac0bc5c558f32ea4bc422cd591d4070234dfeee /lib/migrations/20160703062241-support-authorship.js
parent7328e7ad79be86dfb7494ae7946d77f25c8eaf59 (diff)
parent5da10c0e2c00a7e26f4521e45888840d41175a61 (diff)
Merge pull request #1040 from sunbit/master
Fix migration failure due to change on error messages
Diffstat (limited to '')
-rw-r--r--lib/migrations/20160703062241-support-authorship.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/migrations/20160703062241-support-authorship.js b/lib/migrations/20160703062241-support-authorship.js
index ccdfeb3e..f452b1a7 100644
--- a/lib/migrations/20160703062241-support-authorship.js
+++ b/lib/migrations/20160703062241-support-authorship.js
@@ -17,7 +17,7 @@ module.exports = {
updatedAt: Sequelize.DATE
})
}).catch(function (error) {
- if (error.message === "ER_DUP_FIELDNAME: Duplicate column name 'authorship'" || error.message === 'column "authorship" of relation "Notes" already exists') {
+ if (error.message === 'SQLITE_ERROR: duplicate column name: authorship' || error.message === "ER_DUP_FIELDNAME: Duplicate column name 'authorship'" || error.message === 'column "authorship" of relation "Notes" already exists') {
console.log('Migration has already run… ignoring.')
} else {
throw error