diff --git a/bun.lockb b/bun.lockb new file mode 100755 index 000000000..12b352856 Binary files /dev/null and b/bun.lockb differ diff --git a/packages/backend/bun.lockb b/packages/backend/bun.lockb new file mode 100755 index 000000000..3f25165c7 Binary files /dev/null and b/packages/backend/bun.lockb differ diff --git a/packages/backend/migration/1669288094000-AddMovedToAndKnownAs.js b/packages/backend/migration/1669288094000-AddMovedToAndKnownAs.js new file mode 100644 index 000000000..8936c3503 --- /dev/null +++ b/packages/backend/migration/1669288094000-AddMovedToAndKnownAs.js @@ -0,0 +1,16 @@ +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"`); + } + +} diff --git a/packages/backend/src/models/entities/user.ts b/packages/backend/src/models/entities/user.ts index bc9446be4..9d79c42e6 100644 --- a/packages/backend/src/models/entities/user.ts +++ b/packages/backend/src/models/entities/user.ts @@ -68,6 +68,12 @@ export class User { }) public followingCount: number; + @Column('varchar', { + length: 512, nullable: true, + comment: 'The URI of the new account of the User', + }) + public movedToUri: string | null; + @Column('integer', { default: 0, comment: 'The count of notes.', diff --git a/packages/sw/bun.lockb b/packages/sw/bun.lockb new file mode 100755 index 000000000..13b15759c Binary files /dev/null and b/packages/sw/bun.lockb differ