mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-10 23:51:01 -07:00
fix migration
This commit is contained in:
parent
0e61b83460
commit
de02c0fe4a
1 changed files with 3 additions and 3 deletions
|
@ -3,14 +3,14 @@ export class 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(`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"."knownAs" IS 'URIs the user is known as too'`);
|
||||
await queryRunner.query(`COMMENT ON COLUMN "user"."alsoKnownAs" 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"`);
|
||||
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "alsoKnownAs"`);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue