fix (backend): tell TypeORM that some columns are no longer indexed
should have done in caae8474a6
This commit is contained in:
parent
6e9ae06990
commit
64c07a2406
7 changed files with 0 additions and 14 deletions
|
@ -23,7 +23,6 @@ export class DriveFile {
|
||||||
@PrimaryColumn(id())
|
@PrimaryColumn(id())
|
||||||
public id: string;
|
public id: string;
|
||||||
|
|
||||||
@Index()
|
|
||||||
@Column("timestamp without time zone", {
|
@Column("timestamp without time zone", {
|
||||||
comment: "The created date of the DriveFile.",
|
comment: "The created date of the DriveFile.",
|
||||||
})
|
})
|
||||||
|
@ -147,7 +146,6 @@ export class DriveFile {
|
||||||
})
|
})
|
||||||
public webpublicAccessKey: string | null;
|
public webpublicAccessKey: string | null;
|
||||||
|
|
||||||
@Index()
|
|
||||||
@Column("varchar", {
|
@Column("varchar", {
|
||||||
length: 512,
|
length: 512,
|
||||||
nullable: true,
|
nullable: true,
|
||||||
|
|
|
@ -19,7 +19,6 @@ export class Hashtag {
|
||||||
})
|
})
|
||||||
public mentionedUserIds: User["id"][];
|
public mentionedUserIds: User["id"][];
|
||||||
|
|
||||||
@Index()
|
|
||||||
@Column("integer", {
|
@Column("integer", {
|
||||||
default: 0,
|
default: 0,
|
||||||
})
|
})
|
||||||
|
@ -43,7 +42,6 @@ export class Hashtag {
|
||||||
})
|
})
|
||||||
public mentionedRemoteUserIds: User["id"][];
|
public mentionedRemoteUserIds: User["id"][];
|
||||||
|
|
||||||
@Index()
|
|
||||||
@Column("integer", {
|
@Column("integer", {
|
||||||
default: 0,
|
default: 0,
|
||||||
})
|
})
|
||||||
|
@ -55,7 +53,6 @@ export class Hashtag {
|
||||||
})
|
})
|
||||||
public attachedUserIds: User["id"][];
|
public attachedUserIds: User["id"][];
|
||||||
|
|
||||||
@Index()
|
|
||||||
@Column("integer", {
|
@Column("integer", {
|
||||||
default: 0,
|
default: 0,
|
||||||
})
|
})
|
||||||
|
|
|
@ -17,7 +17,6 @@ export class NoteReaction {
|
||||||
@PrimaryColumn(id())
|
@PrimaryColumn(id())
|
||||||
public id: string;
|
public id: string;
|
||||||
|
|
||||||
@Index()
|
|
||||||
@Column("timestamp without time zone", {
|
@Column("timestamp without time zone", {
|
||||||
comment: "The created date of the NoteReaction.",
|
comment: "The created date of the NoteReaction.",
|
||||||
})
|
})
|
||||||
|
|
|
@ -139,7 +139,6 @@ export class Note {
|
||||||
|
|
||||||
// FIXME: file id is not removed from this array even if the file is deleted
|
// FIXME: file id is not removed from this array even if the file is deleted
|
||||||
// TODO: drop this column and use note_files
|
// TODO: drop this column and use note_files
|
||||||
@Index()
|
|
||||||
@Column({
|
@Column({
|
||||||
...id(),
|
...id(),
|
||||||
array: true,
|
array: true,
|
||||||
|
@ -147,7 +146,6 @@ export class Note {
|
||||||
})
|
})
|
||||||
public fileIds: DriveFile["id"][];
|
public fileIds: DriveFile["id"][];
|
||||||
|
|
||||||
@Index()
|
|
||||||
@Column("varchar", {
|
@Column("varchar", {
|
||||||
length: 256,
|
length: 256,
|
||||||
array: true,
|
array: true,
|
||||||
|
@ -163,7 +161,6 @@ export class Note {
|
||||||
})
|
})
|
||||||
public visibleUserIds: User["id"][];
|
public visibleUserIds: User["id"][];
|
||||||
|
|
||||||
@Index()
|
|
||||||
@Column({
|
@Column({
|
||||||
...id(),
|
...id(),
|
||||||
array: true,
|
array: true,
|
||||||
|
@ -184,7 +181,6 @@ export class Note {
|
||||||
})
|
})
|
||||||
public emojis: string[];
|
public emojis: string[];
|
||||||
|
|
||||||
@Index()
|
|
||||||
@Column("varchar", {
|
@Column("varchar", {
|
||||||
length: 128,
|
length: 128,
|
||||||
array: true,
|
array: true,
|
||||||
|
|
|
@ -20,7 +20,6 @@ export class Notification {
|
||||||
@PrimaryColumn(id())
|
@PrimaryColumn(id())
|
||||||
public id: string;
|
public id: string;
|
||||||
|
|
||||||
@Index()
|
|
||||||
@Column("timestamp without time zone", {
|
@Column("timestamp without time zone", {
|
||||||
comment: "The created date of the Notification.",
|
comment: "The created date of the Notification.",
|
||||||
})
|
})
|
||||||
|
|
|
@ -44,14 +44,12 @@ export class Poll {
|
||||||
})
|
})
|
||||||
public noteVisibility: (typeof noteVisibilities)[number];
|
public noteVisibility: (typeof noteVisibilities)[number];
|
||||||
|
|
||||||
@Index()
|
|
||||||
@Column({
|
@Column({
|
||||||
...id(),
|
...id(),
|
||||||
comment: "[Denormalized]",
|
comment: "[Denormalized]",
|
||||||
})
|
})
|
||||||
public userId: User["id"];
|
public userId: User["id"];
|
||||||
|
|
||||||
@Index()
|
|
||||||
@Column("varchar", {
|
@Column("varchar", {
|
||||||
length: 512,
|
length: 512,
|
||||||
nullable: true,
|
nullable: true,
|
||||||
|
|
|
@ -116,7 +116,6 @@ export class User {
|
||||||
})
|
})
|
||||||
public bannerId: DriveFile["id"] | null;
|
public bannerId: DriveFile["id"] | null;
|
||||||
|
|
||||||
@Index()
|
|
||||||
@Column("varchar", {
|
@Column("varchar", {
|
||||||
length: 128,
|
length: 128,
|
||||||
array: true,
|
array: true,
|
||||||
|
|
Loading…
Reference in a new issue