From 3c844ae777a367d0c48daeea83bc9205738bbc69 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Mon, 16 Feb 2026 13:13:46 -0700 Subject: Fix loading discord guild templates --- .../postgres/1771271159006-set-role-managed-default.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/util/migration/postgres/1771271159006-set-role-managed-default.ts (limited to 'src/util/migration/postgres') diff --git a/src/util/migration/postgres/1771271159006-set-role-managed-default.ts b/src/util/migration/postgres/1771271159006-set-role-managed-default.ts new file mode 100644 index 000000000..fad55f237 --- /dev/null +++ b/src/util/migration/postgres/1771271159006-set-role-managed-default.ts @@ -0,0 +1,13 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class SetRoleManagedDefault1771271159006 implements MigrationInterface { + name = "SetRoleManagedDefault1771271159006"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "roles" ALTER COLUMN "managed" SET DEFAULT false`); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "roles" ALTER COLUMN "managed" DROP DEFAULT`); + } +} -- cgit 1.5.1