2022-11-24 20:32:25 +09:00
|
|
|
export class addMovedToAndKnownAs1669288094000 {
|
|
|
|
name = 'addMovedToAndKnownAs1669288094000'
|
|
|
|
|
|
|
|
async up(queryRunner) {
|
|
|
|
await queryRunner.query(`ALTER TABLE "user" ADD "movedToUri" character varying(512)`);
|
2022-12-05 06:26:24 +09:00
|
|
|
await queryRunner.query(`ALTER TABLE "user" ADD "alsoKnownAs" TEXT []`);
|
2022-11-24 20:32:25 +09:00
|
|
|
await queryRunner.query(`COMMENT ON COLUMN "user"."movedToUri" IS 'The URI of the new account of the User'`);
|
2022-12-05 06:26:24 +09:00
|
|
|
await queryRunner.query(`COMMENT ON COLUMN "user"."alsoKnownAs" IS 'URIs the user is known as too'`);
|
2022-11-24 20:32:25 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
async down(queryRunner) {
|
|
|
|
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "movedToUri"`);
|
2022-12-05 06:26:24 +09:00
|
|
|
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "alsoKnownAs"`);
|
2022-11-24 20:32:25 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|