Push data model changes

This commit is contained in:
Lukas | AstroGD 2022-11-29 02:44:54 +01:00
parent bfabd62674
commit 5fb9ad1e12
Signed by: AstroGD
GPG Key ID: 82A5E6C236C535AA

View File

@ -0,0 +1,19 @@
import { MigrationInterface, QueryRunner } from "typeorm";
export class data1669686263307 implements MigrationInterface {
name = 'data1669686263307'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
ALTER TABLE "guild_setting" DROP COLUMN "isPremiumUntil"
`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
ALTER TABLE "guild_setting"
ADD "isPremiumUntil" TIMESTAMP
`);
}
}