diff options
author | Carles Bruguera | 2018-11-06 19:07:28 +0100 |
---|---|---|
committer | Carles Bruguera | 2018-11-16 23:53:50 +0100 |
commit | 5da10c0e2c00a7e26f4521e45888840d41175a61 (patch) | |
tree | 70e471b425b6268d70d626d31ac9b3d7b3573320 /lib/migrations/20150702001020-update-to-0_3_1.js | |
parent | 64e9dfd7140a90ca388eed3e0c26df800850e799 (diff) |
Update error message text checks
Signed-off-by: Carles Bruguera <carlesba@gmail.com>
Diffstat (limited to 'lib/migrations/20150702001020-update-to-0_3_1.js')
-rw-r--r-- | lib/migrations/20150702001020-update-to-0_3_1.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/migrations/20150702001020-update-to-0_3_1.js b/lib/migrations/20150702001020-update-to-0_3_1.js index eb18211f..e1a88661 100644 --- a/lib/migrations/20150702001020-update-to-0_3_1.js +++ b/lib/migrations/20150702001020-update-to-0_3_1.js @@ -21,7 +21,7 @@ module.exports = { defaultValue: 0 }) }).catch(function (error) { - if (error.message === "ER_DUP_FIELDNAME: Duplicate column name 'shortid'" || error.message === 'column "shortid" of relation "Notes" already exists') { + if (error.message === 'SQLITE_ERROR: duplicate column name: shortid' || error.message === "ER_DUP_FIELDNAME: Duplicate column name 'shortid'" || error.message === 'column "shortid" of relation "Notes" already exists') { console.log('Migration has already run… ignoring.') } else { throw error |