mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 17:03:49 +01:00
DB moveTo (#9142)
This commit is contained in:
commit
eb805adc0e
3
packages/backend/bun.lockb
Executable file
3
packages/backend/bun.lockb
Executable file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fc69a322b5dd9baec1f8713ed24f27e2f1c396e403a3fa7d358ecad865357ddb
|
||||
size 399520
|
@ -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,18 @@ 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('simple-array', {
|
||||
nullable: true,
|
||||
comment: 'URIs the user is known as too',
|
||||
})
|
||||
public alsoKnownAs: string[] | null;
|
||||
|
||||
@Column('integer', {
|
||||
default: 0,
|
||||
comment: 'The count of notes.',
|
||||
|
BIN
packages/sw/bun.lockb
(Stored with Git LFS)
Executable file
BIN
packages/sw/bun.lockb
(Stored with Git LFS)
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user