mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +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');
|
||||
|
||||
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");
|
||||
`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user