From 120225947f6c22c8e7f8b9c2b72f496784162647 Mon Sep 17 00:00:00 2001 From: Tilman Vatteroth Date: Wed, 2 Dec 2020 17:22:27 +0100 Subject: Catch more errors Signed-off-by: Tilman Vatteroth --- lib/migrations/20150702001020-update-to-0_3_1.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/migrations/20150702001020-update-to-0_3_1.js') diff --git a/lib/migrations/20150702001020-update-to-0_3_1.js b/lib/migrations/20150702001020-update-to-0_3_1.js index 7bea58ca..16001f2e 100644 --- a/lib/migrations/20150702001020-update-to-0_3_1.js +++ b/lib/migrations/20150702001020-update-to-0_3_1.js @@ -21,9 +21,8 @@ module.exports = { defaultValue: 0 }) }).catch(function (error) { - if (error.message === 'SQLITE_ERROR: duplicate column name: shortid' || - error.message === 'column "shortid" of relation "Notes" already exists' || - error.message.toLowerCase().includes("duplicate column name 'shortid'")) { + if (error.message === 'column "shortid" of relation "Notes" already exists' || + error.message.toLowerCase().includes('duplicate column name')) { // eslint-disable-next-line no-console console.log('Migration has already run… ignoring.') } else { -- cgit v1.2.3