diff --git a/pkg/internal/database/source.go b/pkg/internal/database/source.go index 7ae6651..eb859cc 100644 --- a/pkg/internal/database/source.go +++ b/pkg/internal/database/source.go @@ -24,7 +24,7 @@ func NewGorm() error { Colorful: true, IgnoreRecordNotFoundError: true, LogLevel: lo.Ternary(viper.GetBool("debug.database"), logger.Info, logger.Silent), - })}) + }), DisableForeignKeyConstraintWhenMigrating: true}) return err