Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sogehige committed Feb 26, 2024
1 parent 6a7f5fe commit ad4e9a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export class permissionScopes1678892044040 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
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;
}

Expand Down

0 comments on commit ad4e9a9

Please sign in to comment.