mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-09 18:55:40 +00:00
regenerate migrations
This commit is contained in:
@@ -1,15 +1,9 @@
|
||||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class guildMemberProfiles1661785289467 implements MigrationInterface {
|
||||
name = 'guildMemberProfiles1661785289467'
|
||||
export class guildMemberProfiles1661885910534 implements MigrationInterface {
|
||||
name = 'guildMemberProfiles1661885910534'
|
||||
|
||||
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\` varchar(255) NULL
|
||||
@@ -26,15 +20,9 @@ export class guildMemberProfiles1661785289467 implements MigrationInterface {
|
||||
ALTER TABLE \`members\`
|
||||
ADD \`communication_disabled_until\` datetime NULL
|
||||
`);
|
||||
await queryRunner.query(`
|
||||
ALTER TABLE \`connected_accounts\` CHANGE \`access_token\` \`access_token\` varchar(255) NOT NULL
|
||||
`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`
|
||||
ALTER TABLE \`connected_accounts\` CHANGE \`access_token\` \`access_token\` varchar(255) NULL
|
||||
`);
|
||||
await queryRunner.query(`
|
||||
ALTER TABLE \`members\` DROP COLUMN \`communication_disabled_until\`
|
||||
`);
|
||||
@@ -47,14 +35,6 @@ export class guildMemberProfiles1661785289467 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\` varchar(255) NOT NULL
|
||||
`);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,15 +1,9 @@
|
||||
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,18 +20,9 @@ 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"
|
||||
`);
|
||||
@@ -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
|
||||
`);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class guildMemberProfiles1661785235464 implements MigrationInterface {
|
||||
name = 'guildMemberProfiles1661785235464'
|
||||
export class guildMemberProfiles1661885742207 implements MigrationInterface {
|
||||
name = 'guildMemberProfiles1661885742207'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`
|
||||
Reference in New Issue
Block a user