export class Lua4FrozenDatabaseFiles1783900000000 {
    name = "Lua4FrozenDatabaseFiles1783900000000";
    async up(queryRunner) {
        await queryRunner.query(`ALTER TABLE "drive_file" ADD COLUMN IF NOT EXISTS "isDatabase" boolean NOT NULL DEFAULT false`);
        await queryRunner.query(`CREATE INDEX IF NOT EXISTS "IDX_drive_file_is_database" ON "drive_file" ("isDatabase")`);
        await queryRunner.query(`ALTER TABLE "meta" ADD COLUMN IF NOT EXISTS "lua4frozenDatabaseCapacityMb" integer NOT NULL DEFAULT 16`);
    }
    async down(queryRunner) {
        await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN IF EXISTS "lua4frozenDatabaseCapacityMb"`);
        await queryRunner.query(`DROP INDEX IF EXISTS "IDX_drive_file_is_database"`);
        await queryRunner.query(`ALTER TABLE "drive_file" DROP COLUMN IF EXISTS "isDatabase"`);
    }
}
