calckey/packages/backend/migration/1669288094000-AddMovedToAnd...

17 lines
679 B
JavaScript
Raw Normal View History

2022-11-24 11:32:25 +00:00
export class addMovedToAndKnownAs1669288094000 {
name = 'addMovedToAndKnownAs1669288094000'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "user" ADD "movedToUri" character varying(512)`);
await queryRunner.query(`ALTER TABLE "user" ADD "knownAs" 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"."knownAs" IS 'URIs the user is known as too'`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "movedToUri"`);
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "knownAs"`);
}
}