mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 20:07:33 -07:00
15 lines
473 B
TypeScript
15 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);
|
|
}
|
|
}
|