1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-23 01:27:14 +02: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)
positionData: PositionMetaDataEntity;
@Column('tinyint', {unsigned: true})
@Column('tinyint', {unsigned: false})
@Index()
rating: 0 | 1 | 2 | 3 | 4 | 5;
rating: -1 | 0 | 1 | 2 | 3 | 4 | 5;
@OneToMany(() => PersonJunctionTable, (junctionTable) => junctionTable.media)
personJunction: PersonJunctionTable[];