summary refs log tree commit diff
path: root/src/util/migrations/postgres
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@protonmail.com>2022-08-30 15:00:23 -0400
committerPuyodead1 <puyodead@protonmail.com>2022-08-30 15:00:23 -0400
commita4e7b9aa3422da873d22d0c80a79b1bbb530e31d (patch)
treefb68a160b3f342e88260abb77fd8ea5b917fa23e /src/util/migrations/postgres
parentDelete profile.ts (diff)
downloadserver-a4e7b9aa3422da873d22d0c80a79b1bbb530e31d.tar.xz
regenerate migrations
Diffstat (limited to 'src/util/migrations/postgres')
-rw-r--r--src/util/migrations/postgres/1661885830688-guild-member-profiles.ts (renamed from src/util/migrations/postgres/1661785263936-guild-member-profiles.ts)27
1 files changed, 2 insertions, 25 deletions
diff --git a/src/util/migrations/postgres/1661785263936-guild-member-profiles.ts b/src/util/migrations/postgres/1661885830688-guild-member-profiles.ts

index af0f2a33..b774743b 100644 --- a/src/util/migrations/postgres/1661785263936-guild-member-profiles.ts +++ b/src/util/migrations/postgres/1661885830688-guild-member-profiles.ts
@@ -1,16 +1,10 @@ import { MigrationInterface, QueryRunner } from "typeorm"; -export class guildMemberProfiles1661785263936 implements MigrationInterface { - name = 'guildMemberProfiles1661785263936' +export class guildMemberProfiles1661885830688 implements MigrationInterface { + name = 'guildMemberProfiles1661885830688' public async up(queryRunner: QueryRunner): Promise<void> { await queryRunner.query(` - ALTER TABLE "connected_accounts" DROP COLUMN "external_id" - `); - await queryRunner.query(` - ALTER TABLE "connected_accounts" DROP COLUMN "integrations" - `); - await queryRunner.query(` ALTER TABLE "members" ADD "avatar" character varying `); @@ -26,19 +20,10 @@ export class guildMemberProfiles1661785263936 implements MigrationInterface { ALTER TABLE "members" ADD "communication_disabled_until" TIMESTAMP `); - await queryRunner.query(` - ALTER TABLE "connected_accounts" - ALTER COLUMN "access_token" - SET NOT NULL - `); } public async down(queryRunner: QueryRunner): Promise<void> { await queryRunner.query(` - ALTER TABLE "connected_accounts" - ALTER COLUMN "access_token" DROP NOT NULL - `); - await queryRunner.query(` ALTER TABLE "members" DROP COLUMN "communication_disabled_until" `); await queryRunner.query(` @@ -50,14 +35,6 @@ export class guildMemberProfiles1661785263936 implements MigrationInterface { await queryRunner.query(` ALTER TABLE "members" DROP COLUMN "avatar" `); - await queryRunner.query(` - ALTER TABLE "connected_accounts" - ADD "integrations" text NOT NULL - `); - await queryRunner.query(` - ALTER TABLE "connected_accounts" - ADD "external_id" character varying NOT NULL - `); } }