Closed ryanrolds closed 2 years ago
Bonus question, should group.Migrations = migrations[:i+1]
be dependent on the success of the "up" when only making as applied on success? I think the expectation is that the returned group are only migrations that got marked as applied, which varies based on that flag.
It looks like the
MigrationGroup
at https://github.com/uptrace/go-clickhouse/blob/master/chmigrate/migrator.go#L150-L153, is always empty asgroup.Migrations
isn't being set to the unapplied migrations. I assume the range should be onmigrations
.