1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

changed database to be able to contain rating -1

This commit is contained in:
gras 2024-03-30 15:59:38 +01:00
parent 9e7acc46c1
commit 77982e6c10

View File

@ -132,9 +132,9 @@ export class MediaMetadataEntity implements MediaMetadata {
@Column(() => PositionMetaDataEntity) @Column(() => PositionMetaDataEntity)
positionData: PositionMetaDataEntity; positionData: PositionMetaDataEntity;
@Column('tinyint', {unsigned: true}) @Column('tinyint', {unsigned: false})
@Index() @Index()
rating: 0 | 1 | 2 | 3 | 4 | 5; rating: -1 | 0 | 1 | 2 | 3 | 4 | 5;
@OneToMany(() => PersonJunctionTable, (junctionTable) => junctionTable.media) @OneToMany(() => PersonJunctionTable, (junctionTable) => junctionTable.media)
personJunction: PersonJunctionTable[]; personJunction: PersonJunctionTable[];