Merge pull request #13432 from tonedef/mysql8-catalog-backend
Add MySQL support to the catalog-backend plugin
This commit is contained in:
@@ -29,6 +29,7 @@ export function isDatabaseConflictError(e: unknown) {
|
||||
typeof message === 'string' &&
|
||||
(/SQLITE_CONSTRAINT(?:_UNIQUE)?: UNIQUE/.test(message) ||
|
||||
/UNIQUE constraint failed:/.test(message) ||
|
||||
/unique constraint/.test(message))
|
||||
/unique constraint/.test(message) ||
|
||||
/Duplicate entry/.test(message)) // MySQL uniqueness error msg
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user