diff --git a/src/database/migration/mysql/22.x/1678892044040-permissionScopes.ts b/src/database/migration/mysql/22.x/1678892044040-permissionScopes.ts index 7cd8f96aa4b..1d006c9cc06 100644 --- a/src/database/migration/mysql/22.x/1678892044040-permissionScopes.ts +++ b/src/database/migration/mysql/22.x/1678892044040-permissionScopes.ts @@ -8,7 +8,7 @@ export class permissionScopes1678892044040 implements MigrationInterface { public async up(queryRunner: QueryRunner): Promise { await queryRunner.query(`ALTER TABLE \`permissions\` ADD \`haveAllScopes\` tinyint NOT NULL DEFAULT 0`); await queryRunner.query(`ALTER TABLE \`permissions\` ADD \`scopes\` text NOT NULL`); - await queryRunner.query(`UPDATE \`permissions\` SET \`haveAllScopes\` = 1 WHERE \`id\` != $1`, [defaultPermissions.CASTERS]); + await queryRunner.query(`UPDATE \`permissions\` SET \`haveAllScopes\` = 1 WHERE \`id\` != ?`, [defaultPermissions.CASTERS]); return; }