forked from mirrors/iceshrimp
16 lines
473 B
TypeScript
16 lines
473 B
TypeScript
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
export class v12131580543501339 implements MigrationInterface {
|
|
constructor() {
|
|
this.name = "v12131580543501339";
|
|
}
|
|
async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(
|
|
`CREATE INDEX "IDX_NOTE_TAGS" ON "note" USING gin ("tags")`,
|
|
undefined,
|
|
);
|
|
}
|
|
async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`DROP INDEX "IDX_NOTE_TAGS"`, undefined);
|
|
}
|
|
}
|