mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 22:54:42 -04:00
Update error message text checks
Signed-off-by: Carles Bruguera <carlesba@gmail.com>
This commit is contained in:
parent
64e9dfd714
commit
5da10c0e2c
8 changed files with 8 additions and 8 deletions
|
@ -8,7 +8,7 @@ module.exports = {
|
|||
indicesType: 'UNIQUE'
|
||||
})
|
||||
}).catch(function (error) {
|
||||
if (error.message === "ER_DUP_FIELDNAME: Duplicate column name 'alias'" || error.message === 'column "alias" of relation "Notes" already exists') {
|
||||
if (error.message === 'SQLITE_ERROR: duplicate column name: alias' || error.message === "ER_DUP_FIELDNAME: Duplicate column name 'alias'" || error.message === 'column "alias" of relation "Notes" already exists') {
|
||||
console.log('Migration has already run… ignoring.')
|
||||
} else {
|
||||
throw error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue