summaryrefslogtreecommitdiff
path: root/migration/1581708415836-drive-user-folder-id-index.ts
blob: e7a7628ff0fd81df8217d249f996abf00740ff7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import {MigrationInterface, QueryRunner} from "typeorm";

export class driveUserFolderIdIndex1581708415836 implements MigrationInterface {
    name = 'driveUserFolderIdIndex1581708415836'

    public async up(queryRunner: QueryRunner): Promise<any> {
        await queryRunner.query(`CREATE INDEX "IDX_55720b33a61a7c806a8215b825" ON "drive_file" ("userId", "folderId", "id") `, undefined);
    }

    public async down(queryRunner: QueryRunner): Promise<any> {
        await queryRunner.query(`DROP INDEX "IDX_55720b33a61a7c806a8215b825"`, undefined);
    }

}