FoundKey/packages/backend/migration/1642698156335-reported-urls.js

12 lines
358 B
JavaScript
Raw Normal View History

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"`);
}
};