fix log + add 3 indexes on fielMetadata and indexFieldMetadata (#10113)
This commit is contained in:
@ -52,6 +52,7 @@ export class FieldMetadataEntity<
|
||||
onDelete: 'CASCADE',
|
||||
})
|
||||
@JoinColumn({ name: 'objectMetadataId' })
|
||||
@Index('IndexOnObjectMetadataId')
|
||||
object: Relation<ObjectMetadataEntity>;
|
||||
|
||||
@Column({
|
||||
@ -97,6 +98,7 @@ export class FieldMetadataEntity<
|
||||
isUnique: boolean;
|
||||
|
||||
@Column({ nullable: false, type: 'uuid' })
|
||||
@Index('IndexOnWorkspaceId')
|
||||
workspaceId: string;
|
||||
|
||||
@Column({ default: false })
|
||||
|
||||
@ -2,6 +2,7 @@ import {
|
||||
Column,
|
||||
CreateDateColumn,
|
||||
Entity,
|
||||
Index,
|
||||
JoinColumn,
|
||||
ManyToOne,
|
||||
PrimaryGeneratedColumn,
|
||||
@ -31,6 +32,7 @@ export class IndexFieldMetadataEntity {
|
||||
indexMetadata: Relation<IndexMetadataEntity>;
|
||||
|
||||
@Column({ nullable: false })
|
||||
@Index('IndexOnFieldMetadataId')
|
||||
fieldMetadataId: string;
|
||||
|
||||
@ManyToOne(
|
||||
|
||||
Reference in New Issue
Block a user