2022-11-24 11:32:25 +00:00
|
|
|
export class addMovedToAndKnownAs1669288094000 {
|
2023-04-07 01:56:46 +00:00
|
|
|
name = "addMovedToAndKnownAs1669288094000";
|
2022-11-24 11:32:25 +00:00
|
|
|
|
|
|
|
async up(queryRunner) {
|
2023-04-07 01:56:46 +00:00
|
|
|
await queryRunner.query(
|
|
|
|
`ALTER TABLE "user" ADD "movedToUri" character varying(512)`,
|
|
|
|
);
|
|
|
|
await queryRunner.query(`ALTER TABLE "user" ADD "alsoKnownAs" TEXT`);
|
|
|
|
await queryRunner.query(
|
|
|
|
`COMMENT ON COLUMN "user"."movedToUri" IS 'The URI of the new account of the User'`,
|
|
|
|
);
|
|
|
|
await queryRunner.query(
|
|
|
|
`COMMENT ON COLUMN "user"."alsoKnownAs" IS 'URIs the user is known as too'`,
|
|
|
|
);
|
2022-11-24 11:32:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
async down(queryRunner) {
|
2023-04-07 01:56:46 +00:00
|
|
|
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "movedToUri"`);
|
|
|
|
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "alsoKnownAs"`);
|
2022-11-24 11:32:25 +00:00
|
|
|
}
|
|
|
|
}
|