mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix: mysql migration using incorrect syntax on insert (#4166)
fix: mysql migration using incorrect on insert
This commit is contained in:
parent
708796e17f
commit
0aeb55dcfd
|
@ -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");
|
||||
`);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue