Skip to content

Commit

Permalink
change(database): dont auto increment id (fixes int and composite key…
Browse files Browse the repository at this point in the history
… issue)
  • Loading branch information
l3uddz committed Feb 2, 2020
1 parent ac55893 commit 0d756db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package database
import "time"

type MediaItem struct {
Id int `gorm:"primary_key"`
Id int `gorm:"primary_key;auto_increment:false"`
PvrName string `gorm:"primary_key"`
WantedType string `gorm:"primary_key"`
AirDateUtc time.Time
Expand Down

0 comments on commit 0d756db

Please sign in to comment.