From 5da10c0e2c00a7e26f4521e45888840d41175a61 Mon Sep 17 00:00:00 2001 From: Carles Bruguera Date: Tue, 6 Nov 2018 19:07:28 +0100 Subject: Update error message text checks Signed-off-by: Carles Bruguera --- lib/migrations/20160112220142-note-add-lastchange.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/migrations/20160112220142-note-add-lastchange.js') diff --git a/lib/migrations/20160112220142-note-add-lastchange.js b/lib/migrations/20160112220142-note-add-lastchange.js index 682337c9..87e3ff19 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'" || error.message === 'column "lastchangeuserId" of relation "Notes" already exists') { + if (error.message === 'SQLITE_ERROR: duplicate column name: lastchangeuserId' || 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 -- cgit v1.2.3