emoji more

This commit is contained in:
mattyatea 2024-06-20 13:49:08 +09:00
parent a64c607584
commit 203b824b28
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
export class Emojimore1718857094676 {
name = 'Emojimore1718857094676'
async up(queryRunner) {
await queryRunner.query(`DROP INDEX "IDX_ad0c221b25672daf2df320a817"`);
await queryRunner.query(`CREATE INDEX "IDX_ad0c221b25672daf2df320a817" ON "note_reaction" ("userId", "noteId") `);
await queryRunner.query(`CREATE UNIQUE INDEX "IDX_a7751b74317122d11575bff31c" ON "note_reaction" ("userId", "noteId", "reaction") `);
}
async down(queryRunner) {
await queryRunner.query(`DROP INDEX "public"."IDX_a7751b74317122d11575bff31c"`);
await queryRunner.query(`DROP INDEX "public"."IDX_ad0c221b25672daf2df320a817"`);
await queryRunner.query(`CREATE UNIQUE INDEX "IDX_ad0c221b25672daf2df320a817" ON "note_reaction" ("userId", "noteId") `);
}
}