regenerate migrations
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
- `);
}
}
|