diff options
author | Christoph (Sheogorath) Kern | 2018-09-06 14:50:37 +0100 |
---|---|---|
committer | GitHub | 2018-09-06 14:50:37 +0100 |
commit | dbbc1f6ac867a68f19bbe28704223729f253681e (patch) | |
tree | aebc9677e6aa6f94622e02b8b48bf3c7d8ca578f /lib/migrations/20160112220142-note-add-lastchange.js | |
parent | f27e11adabd601caa246fa306e24224aebe36467 (diff) | |
parent | 81e3d7bd00686b5e4d1e0b53db3eca9901c183c1 (diff) |
Merge pull request #939 from SISheogorath/fix/migrationsV2
Extend migration error handling
Diffstat (limited to 'lib/migrations/20160112220142-note-add-lastchange.js')
-rw-r--r-- | lib/migrations/20160112220142-note-add-lastchange.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/migrations/20160112220142-note-add-lastchange.js b/lib/migrations/20160112220142-note-add-lastchange.js index d0030d6b..682337c9 100644 --- a/lib/migrations/20160112220142-note-add-lastchange.js +++ b/lib/migrations/20160112220142-note-add-lastchange.js @@ -8,7 +8,7 @@ module.exports = { type: Sequelize.DATE }) }).catch(function (error) { - if (error.message === "ER_DUP_FIELDNAME: Duplicate column name 'lastchangeuserId'") { + if (error.message === "ER_DUP_FIELDNAME: Duplicate column name 'lastchangeuserId'" || error.message === 'column "lastchangeuserId" of relation "Notes" already exists') { console.log('Migration has already run… ignoring.') } else { throw error |