mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Update migrator to set correctly version for RouteS in case of NO_MORE_DATA error
This commit is contained in:
committed by
Dan Christian Bogos
parent
7e6074d1fa
commit
969f4bdfb7
@@ -89,12 +89,12 @@ func (m *Migrator) migrateFromSupplierToRoute() (err error) {
|
||||
if err := m.dmOut.DataManager().SetRouteProfile(convertSupplierToRoute(spp), true); err != nil {
|
||||
return err
|
||||
}
|
||||
m.stats[utils.DerivedChargersV]++
|
||||
m.stats[utils.Routes]++
|
||||
}
|
||||
if m.dryRun {
|
||||
return
|
||||
}
|
||||
if err = m.removeSupplier(); err != nil {
|
||||
if err = m.removeSupplier(); err != nil && err != utils.ErrNoMoreData {
|
||||
return
|
||||
}
|
||||
// All done, update version with current one
|
||||
|
||||
Reference in New Issue
Block a user