summary refs log tree commit diff
path: root/src/util/migrations/postgres/1660265907544-CodeCleanup5.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-08-25 00:44:13 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-08-25 00:44:13 +1000
commit314a4787ce55a091cb89ef4281d7ba09e8323fa4 (patch)
treed77142c009e9c6d45390a8fe01c9aee966d7a4cc /src/util/migrations/postgres/1660265907544-CodeCleanup5.ts
parentMerge remote-tracking branch 'upstream/staging' into feat/captchaVerify (diff)
parentcase insensitive header for rate limits, fix rate limit default settings (diff)
downloadserver-314a4787ce55a091cb89ef4281d7ba09e8323fa4.tar.xz
Merge remote-tracking branch 'upstream/staging' into feat/captchaVerify
Diffstat (limited to 'src/util/migrations/postgres/1660265907544-CodeCleanup5.ts')
-rw-r--r--src/util/migrations/postgres/1660265907544-CodeCleanup5.ts19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/util/migrations/postgres/1660265907544-CodeCleanup5.ts b/src/util/migrations/postgres/1660265907544-CodeCleanup5.ts
index 157d686a..0f098e1f 100644
--- a/src/util/migrations/postgres/1660265907544-CodeCleanup5.ts
+++ b/src/util/migrations/postgres/1660265907544-CodeCleanup5.ts
@@ -1,26 +1,25 @@
 import { MigrationInterface, QueryRunner } from "typeorm";
 
 export class CodeCleanup51660265907544 implements MigrationInterface {
-    name = 'CodeCleanup51660265907544'
+	name = "CodeCleanup51660265907544";
 
-    public async up(queryRunner: QueryRunner): Promise<void> {
-        await queryRunner.query(`
+	public async up(queryRunner: QueryRunner): Promise<void> {
+		await queryRunner.query(`
             ALTER TABLE "channels"
             ADD "flags" integer
         `);
-        await queryRunner.query(`
+		await queryRunner.query(`
             ALTER TABLE "channels"
             ADD "default_thread_rate_limit_per_user" integer
         `);
-    }
+	}
 
-    public async down(queryRunner: QueryRunner): Promise<void> {
-        await queryRunner.query(`
+	public async down(queryRunner: QueryRunner): Promise<void> {
+		await queryRunner.query(`
             ALTER TABLE "channels" DROP COLUMN "default_thread_rate_limit_per_user"
         `);
-        await queryRunner.query(`
+		await queryRunner.query(`
             ALTER TABLE "channels" DROP COLUMN "flags"
         `);
-    }
-
+	}
 }