Skip to content

Commit

Permalink
Prevent primary key update.
Browse files Browse the repository at this point in the history
  • Loading branch information
KN4CK3R committed Jul 27, 2023
1 parent 494ee56 commit 377b25e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/migrations/v1_20/v250.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func ChangeContainerMetadataMultiArch(x *xorm.Engine) error {
}

type PackageVersion struct {
ID int64 `xorm:"pk"`
ID int64 `xorm:"pk autoincr"`
MetadataJSON string `xorm:"metadata_json"`
}

Expand Down

0 comments on commit 377b25e

Please sign in to comment.