From 10fbba89d88c2c2be7023365cec78c54c6057123 Mon Sep 17 00:00:00 2001 From: liuhaoming Date: Mon, 11 Nov 2024 11:52:08 +0800 Subject: [PATCH] fix: only set module name as unique key --- pkg/infra/persistence/module_model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/infra/persistence/module_model.go b/pkg/infra/persistence/module_model.go index 907890e83..d3dbcbeed 100644 --- a/pkg/infra/persistence/module_model.go +++ b/pkg/infra/persistence/module_model.go @@ -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.