mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-22 20:45:13 +00:00
Create 1680931179228-account-move.js
This commit is contained in:
parent
68e8892f61
commit
008e3fb37e
1 changed files with 17 additions and 0 deletions
17
packages/backend/migration/1680931179228-account-move.js
Normal file
17
packages/backend/migration/1680931179228-account-move.js
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
export class AccountMove1680931179228 {
|
||||||
|
name = 'AccountMove1680931179228'
|
||||||
|
|
||||||
|
async up(queryRunner) {
|
||||||
|
await queryRunner.query(`ALTER TABLE "user" ADD "movedToUri" character varying(512)`);
|
||||||
|
await queryRunner.query(`COMMENT ON COLUMN "user"."movedToUri" IS 'The URI of the new account of the User'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "user" ADD "alsoKnownAs" text`);
|
||||||
|
await queryRunner.query(`COMMENT ON COLUMN "user"."alsoKnownAs" IS 'URIs the user is known as too'`);
|
||||||
|
}
|
||||||
|
|
||||||
|
async down(queryRunner) {
|
||||||
|
await queryRunner.query(`COMMENT ON COLUMN "user"."alsoKnownAs" IS 'URIs the user is known as too'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "alsoKnownAs"`);
|
||||||
|
await queryRunner.query(`COMMENT ON COLUMN "user"."movedToUri" IS 'The URI of the new account of the User'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "movedToUri"`);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue