fix(migration): DBのマイグレーションの修正 (MisskeyIO#375)

This commit is contained in:
まっちゃとーにゅ
2024-01-23 21:15:23 +09:00
committed by GitHub
parent 65382dc70b
commit 80923710ec
2 changed files with 18 additions and 8 deletions

View File

@@ -0,0 +1,16 @@
/*
* SPDX-FileCopyrightText: syuilo and other misskey contributors
* SPDX-License-Identifier: AGPL-3.0-only
*/
export class UserProfileBirthdayIndex1706011243939 {
name = 'UserProfileBirthdayIndex1706011243939'
async up(queryRunner) {
await queryRunner.query(`CREATE INDEX "IDX_58699f75b9cf904f5f007909cb" ON "user_profile" ("birthday") `);
}
async down(queryRunner) {
await queryRunner.query(`DROP INDEX "public"."IDX_58699f75b9cf904f5f007909cb"`);
}
}