From 77982e6c104a3e04eca1199b385f3084f40e0951 Mon Sep 17 00:00:00 2001 From: gras Date: Sat, 30 Mar 2024 15:59:38 +0100 Subject: [PATCH] changed database to be able to contain rating -1 --- src/backend/model/database/enitites/MediaEntity.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/model/database/enitites/MediaEntity.ts b/src/backend/model/database/enitites/MediaEntity.ts index 5eb17224..1cb9c3ac 100644 --- a/src/backend/model/database/enitites/MediaEntity.ts +++ b/src/backend/model/database/enitites/MediaEntity.ts @@ -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[];