mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-29 13:27:31 -07:00
found my DB mistakes 💀
This commit is contained in:
parent
795a5f0760
commit
a3e2897bfc
2 changed files with 2 additions and 1 deletions
|
@ -3,7 +3,7 @@ export class addMovedToAndKnownAs1669288094000 {
|
||||||
|
|
||||||
async up(queryRunner) {
|
async up(queryRunner) {
|
||||||
await queryRunner.query(`ALTER TABLE "user" ADD "movedToUri" character varying(512)`);
|
await queryRunner.query(`ALTER TABLE "user" ADD "movedToUri" character varying(512)`);
|
||||||
await queryRunner.query(`ALTER TABLE "user" ADD "alsoKnownAs" 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"."movedToUri" IS 'The URI of the new account of the User'`);
|
||||||
await queryRunner.query(`COMMENT ON COLUMN "user"."alsoKnownAs" IS 'URIs the user is known as too'`);
|
await queryRunner.query(`COMMENT ON COLUMN "user"."alsoKnownAs" IS 'URIs the user is known as too'`);
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,6 +69,7 @@ export class User {
|
||||||
public followingCount: number;
|
public followingCount: number;
|
||||||
|
|
||||||
@Column('varchar', {
|
@Column('varchar', {
|
||||||
|
length: 512,
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: 'The URI of the new account of the User',
|
comment: 'The URI of the new account of the User',
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue