Fix loading discord guild templates

This commit is contained in:
ChrisChrome committed 2026-02-16 13:13:46 -07:00
1 parent c1679ec394
commit 3c844ae777
6 files changed
+46 -9

No files matched your search

@@ -0,0 +1,13 @@
import { MigrationInterface, QueryRunner } from "typeorm";
export class SetRoleManagedDefault1771271159006 implements MigrationInterface {
name = "SetRoleManagedDefault1771271159006";
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "roles" ALTER COLUMN "managed" SET DEFAULT false`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "roles" ALTER COLUMN "managed" DROP DEFAULT`);
}
}