mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-23 06:32:34 +00:00
Fix loading discord guild templates
This commit is contained in:
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`);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user