소스 검색

change migration order

Ivan Galakhov 4 년 전
부모
커밋
ac717b1ace
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      internal/repository/gorm/migrate.go

+ 1 - 1
internal/repository/gorm/migrate.go

@@ -27,8 +27,8 @@ func AutoMigrate(db *gorm.DB) error {
 		&models.DNSRecord{},
 		&models.PWResetToken{},
 		&models.NotificationConfig{},
-		&models.SubEvent{},
 		&models.EventContainer{},
+		&models.SubEvent{},
 		&ints.KubeIntegration{},
 		&ints.BasicIntegration{},
 		&ints.OIDCIntegration{},