type PurchaseShop struct { PurchaseShopId int64 `gorm:"type:bigint(20);unsigned;not null;default:0;uniqueIndex;comment:''"` Name string `gorm:"type:varchar(128);not null;default:'';index;comment:''"` AfterSalesAddress string `gorm:"type:text;comment:'售后地址'"` Remark string `gorm:"type:text"`}在 AutoMigrate 这个 PurchaseShopId字段的 uniqueIndex 总是被重复创建,造成错误。有人知道原因吗
评论 (0)