delete needless instance drive columns
This commit is contained in:
parent
ec64b5ea0b
commit
513c83e374
7 changed files with 13 additions and 30 deletions
|
@ -0,0 +1,13 @@
|
|||
export class removeInstanceDriveColumns1646655454495 {
|
||||
name = 'removeInstanceDriveColumns1646655454495'
|
||||
|
||||
async up(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "instance" DROP COLUMN "driveUsage"`);
|
||||
await queryRunner.query(`ALTER TABLE "instance" DROP COLUMN "driveFiles"`);
|
||||
}
|
||||
|
||||
async down(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "instance" ADD "driveFiles" integer NOT NULL DEFAULT '0'`);
|
||||
await queryRunner.query(`ALTER TABLE "instance" ADD "driveUsage" bigint NOT NULL DEFAULT '0'`);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue