fix: mysql migration using incorrect syntax on insert (#4166)

fix: mysql migration using incorrect on insert
This commit is contained in:
Jonathan Bennetts 2022-09-21 20:58:43 +01:00 committed by GitHub
parent 708796e17f
commit 0aeb55dcfd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,9 +8,8 @@ export class CreateCredentialsUserRole1660062385367 implements MigrationInterfac
const tablePrefix = config.getEnv('database.tablePrefix');
await queryRunner.query(`
INSERT INTO ${tablePrefix}role (name, scope)
VALUES ("user", "credential")
ON CONFLICT DO NOTHING;
INSERT IGNORE INTO ${tablePrefix}role (name, scope)
VALUES ("user", "credential");
`);
}