fix: 解决外键约束顺序依赖导致数据表迁移失败的问题

main
熊二 1 year ago
parent f730f23dd0
commit cd6bf1fea7
  1. 4
      internal/init.go

@ -31,16 +31,16 @@ func syncEntities() error {
&entities.Company{}, &entities.Company{},
&entities.CompanyDepartment{}, &entities.CompanyDepartment{},
&entities.CompanyStaff{}, &entities.CompanyStaff{},
&entities.Config{},
&entities.ConfigGroup{}, &entities.ConfigGroup{},
&entities.Config{},
&entities.Feature{}, &entities.Feature{},
&entities.FeatureCategory{}, &entities.FeatureCategory{},
&entities.FeatureConfig{}, &entities.FeatureConfig{},
&entities.FeatureContent{}, &entities.FeatureContent{},
&entities.FeatureContentChapter{}, &entities.FeatureContentChapter{},
&entities.FeatureContentDetail{}, &entities.FeatureContentDetail{},
&entities.Resource{},
&entities.ResourceCategory{}, &entities.ResourceCategory{},
&entities.Resource{},
&entities.SystemLog{}, &entities.SystemLog{},
&entities.SystemMenu{}, &entities.SystemMenu{},
&entities.SystemPermission{}, &entities.SystemPermission{},

Loading…
Cancel
Save