mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
fix: mysql migration using incorrect syntax on insert (#4166)
fix: mysql migration using incorrect on insert
This commit is contained in:
committed by
GitHub
parent
708796e17f
commit
0aeb55dcfd
@@ -8,9 +8,8 @@ export class CreateCredentialsUserRole1660062385367 implements MigrationInterfac
|
|||||||
const tablePrefix = config.getEnv('database.tablePrefix');
|
const tablePrefix = config.getEnv('database.tablePrefix');
|
||||||
|
|
||||||
await queryRunner.query(`
|
await queryRunner.query(`
|
||||||
INSERT INTO ${tablePrefix}role (name, scope)
|
INSERT IGNORE INTO ${tablePrefix}role (name, scope)
|
||||||
VALUES ("user", "credential")
|
VALUES ("user", "credential");
|
||||||
ON CONFLICT DO NOTHING;
|
|
||||||
`);
|
`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user