Jelajahi Sumber

enhance(site): remove uniqueIndex constraint #673

Jacky 6 bulan lalu
induk
melakukan
b552973998
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      model/site.go

+ 1 - 1
model/site.go

@@ -2,7 +2,7 @@ package model
 
 type Site struct {
 	Model
-	Path           string        `json:"path" gorm:"uniqueIndex"`
+	Path           string        `json:"path"`
 	Advanced       bool          `json:"advanced"`
 	SiteCategoryID uint64        `json:"site_category_id"`
 	SiteCategory   *SiteCategory `json:"site_category,omitempty"`