`ALTER TABLE "abuse_user_report" DROP CONSTRAINT "FK_d049123c413e68ca52abe734203"`,
);
awaitqueryRunner.query(`DROP INDEX "IDX_d049123c413e68ca52abe73420"`);
awaitqueryRunner.query(`DROP INDEX "IDX_5cd442c3b2e74fdd99dae20243"`);
awaitqueryRunner.query(
`ALTER TABLE "abuse_user_report" RENAME COLUMN "userId" TO "targetUserId"`,
);
awaitqueryRunner.query(
`ALTER TABLE "abuse_user_report" ADD "assigneeId" character varying(32)`,
);
awaitqueryRunner.query(
`ALTER TABLE "abuse_user_report" ADD "resolved" boolean NOT NULL DEFAULT false`,
);
awaitqueryRunner.query(
`ALTER TABLE "abuse_user_report" DROP COLUMN "comment"`,
);
awaitqueryRunner.query(
`ALTER TABLE "abuse_user_report" ADD "comment" character varying(2048) NOT NULL DEFAULT '{}'::varchar[]`,
);
awaitqueryRunner.query(
`CREATE INDEX "IDX_2b15aaf4a0dc5be3499af7ab6a" ON "abuse_user_report" ("resolved") `,
);
awaitqueryRunner.query(
`ALTER TABLE "abuse_user_report" ADD CONSTRAINT "FK_08b883dd5fdd6f9c4c1572b36de" FOREIGN KEY ("assigneeId") REFERENCES "user"("id") ON DELETE SET NULL ON UPDATE NO ACTION`,
);
}
asyncdown(queryRunner){
awaitqueryRunner.query(
`ALTER TABLE "abuse_user_report" DROP CONSTRAINT "FK_08b883dd5fdd6f9c4c1572b36de"`,
);
awaitqueryRunner.query(`DROP INDEX "IDX_2b15aaf4a0dc5be3499af7ab6a"`);
awaitqueryRunner.query(
`ALTER TABLE "abuse_user_report" DROP COLUMN "comment"`,
);
awaitqueryRunner.query(
`ALTER TABLE "abuse_user_report" ADD "comment" character varying(512) NOT NULL DEFAULT '{}'::varchar[]`,
);
awaitqueryRunner.query(
`ALTER TABLE "abuse_user_report" DROP COLUMN "resolved"`,
);
awaitqueryRunner.query(
`ALTER TABLE "abuse_user_report" DROP COLUMN "assigneeId"`,
);
awaitqueryRunner.query(
`ALTER TABLE "abuse_user_report" RENAME COLUMN "targetUserId" TO "userId"`,
);
awaitqueryRunner.query(
`CREATE UNIQUE INDEX "IDX_5cd442c3b2e74fdd99dae20243" ON "abuse_user_report" ("userId", "reporterId") `,
);
awaitqueryRunner.query(
`CREATE INDEX "IDX_d049123c413e68ca52abe73420" ON "abuse_user_report" ("userId") `,
);
awaitqueryRunner.query(
`ALTER TABLE "abuse_user_report" ADD CONSTRAINT "FK_d049123c413e68ca52abe734203" FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE NO ACTION`,