Push data model changes
This commit is contained in:
parent
bfabd62674
commit
5fb9ad1e12
19
src/data/migrations/1669686263307-data.ts
Normal file
19
src/data/migrations/1669686263307-data.ts
Normal 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
|
||||
`);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user