Skip to content

Commit

Permalink
fix: mysql migration using incorrect syntax on insert (#4166)
Browse files Browse the repository at this point in the history
fix: mysql migration using incorrect on insert
  • Loading branch information
Joffcom authored Sep 21, 2022
1 parent 708796e commit 0aeb55d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
`);
}

Expand Down

0 comments on commit 0aeb55d

Please sign in to comment.