mirror of
https://github.com/sim1222/misskey.git
synced 2025-07-01 08:19:53 +09:00
delete needless instance drive columns
This commit is contained in:
@ -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'`);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user