2023-07-27 05:31:52 +00:00
|
|
|
/*
|
2024-02-13 15:59:27 +00:00
|
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
2023-07-27 05:31:52 +00:00
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
2022-02-28 15:07:03 +00:00
|
|
|
|
|
|
|
export class refineAbuseUserReport21603095701770 {
|
2021-11-11 17:02:25 +00:00
|
|
|
constructor() {
|
|
|
|
this.name = 'refineAbuseUserReport21603095701770';
|
|
|
|
}
|
|
|
|
async up(queryRunner) {
|
2020-10-19 10:29:04 +00:00
|
|
|
await queryRunner.query(`ALTER TABLE "abuse_user_report" ADD "targetUserHost" character varying(128)`);
|
|
|
|
await queryRunner.query(`ALTER TABLE "abuse_user_report" ADD "reporterHost" character varying(128)`);
|
|
|
|
await queryRunner.query(`CREATE INDEX "IDX_4ebbf7f93cdc10e8d1ef2fc6cd" ON "abuse_user_report" ("targetUserHost") `);
|
|
|
|
await queryRunner.query(`CREATE INDEX "IDX_f8d8b93740ad12c4ce8213a199" ON "abuse_user_report" ("reporterHost") `);
|
|
|
|
}
|
2021-11-11 17:02:25 +00:00
|
|
|
async down(queryRunner) {
|
2020-10-19 10:29:04 +00:00
|
|
|
await queryRunner.query(`DROP INDEX "IDX_f8d8b93740ad12c4ce8213a199"`);
|
|
|
|
await queryRunner.query(`DROP INDEX "IDX_4ebbf7f93cdc10e8d1ef2fc6cd"`);
|
|
|
|
await queryRunner.query(`ALTER TABLE "abuse_user_report" DROP COLUMN "reporterHost"`);
|
|
|
|
await queryRunner.query(`ALTER TABLE "abuse_user_report" DROP COLUMN "targetUserHost"`);
|
|
|
|
}
|
|
|
|
}
|