db migration for moved to
This commit is contained in:
parent
684f7be189
commit
37b24bfcb3
BIN
packages/backend/bun.lockb
Executable file
BIN
packages/backend/bun.lockb
Executable file
Binary file not shown.
@ -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"`);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -68,6 +68,12 @@ export class User {
|
|||||||
})
|
})
|
||||||
public followingCount: number;
|
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', {
|
@Column('integer', {
|
||||||
default: 0,
|
default: 0,
|
||||||
comment: 'The count of notes.',
|
comment: 'The count of notes.',
|
||||||
|
BIN
packages/sw/bun.lockb
Executable file
BIN
packages/sw/bun.lockb
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user