Johann150
9ca504784a
Instead of putting the URL in the report text, it is stored separately so that users do not accidentally change or remove it. This way it can easily be used when forwarding reports to different instances to tell them what exactly was reported.
11 lines
358 B
JavaScript
11 lines
358 B
JavaScript
export class reportedUrls1642698156335 {
|
|
name = 'reportedUrls1642698156335';
|
|
|
|
async up(queryRunner) {
|
|
await queryRunner.query(`ALTER TABLE "abuse_user_report" ADD "urls" character varying (512) array NOT NULL DEFAULT '{}'::varchar[]`);
|
|
}
|
|
|
|
async down(queryRunner) {
|
|
await queryRunner.query(`ALTER TABLE "abuse_user_report" DROP COLUMN "urls"`);
|
|
}
|
|
};
|