Skip to content

Commit

Permalink
fix: only set module name as unique key
Browse files Browse the repository at this point in the history
  • Loading branch information
liu-hm19 committed Nov 11, 2024
1 parent 6da06c2 commit 10fbba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/infra/persistence/module_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type ModuleModel struct {
// Name is the module name.
Name string `gorm:"index:unique_module,unique"`
// URL is the module oci artifact registry URL.
URL string `gorm:"index:unique_module,unique"`
URL string
// Description is a human-readable description of the module.
Description string
// Owners is a list of owners for the module.
Expand Down

0 comments on commit 10fbba8

Please sign in to comment.