Active test in migrator

This commit is contained in:
TeoV
2017-12-04 16:56:18 +02:00
committed by Dan Christian Bogos
parent 8f0a3b50b8
commit a5f9dff089
3 changed files with 9 additions and 11 deletions

View File

@@ -40,15 +40,13 @@ var (
// subtests to be executed for each migrator
var sTestsITMigrator = []func(t *testing.T){
testFlush,
/*
testMigratorAccounts,
testMigratorActionPlans,
testMigratorActionTriggers,
testMigratorActions,
testMigratorSharedGroups,
testMigratorStats,
testMigratorTPRatingProfile,
*/
testMigratorAccounts,
testMigratorActionPlans,
testMigratorActionTriggers,
testMigratorActions,
testMigratorSharedGroups,
testMigratorStats,
testMigratorTPRatingProfile,
testMigratorTPSuppliers,
testFlush,
}

View File

@@ -65,7 +65,7 @@ func (m *Migrator) migrateSupplierProfiles() (err error) {
return utils.NewCGRError(utils.Migrator,
utils.MandatoryIEMissingCaps,
utils.UndefinedVersion,
"version number is not defined for ActionTriggers model")
"version number is not defined for SupplierProfiles model")
}
switch vrs[utils.Suppliers] {
case current[utils.Suppliers]:

View File

@@ -32,7 +32,7 @@ func (m *Migrator) migrateCurrentTPSuppliers() (err error) {
}
for _, tpid := range tpids {
ids, err := m.InStorDB().GetTpTableIds(tpid, utils.TBLTPSuppliers, utils.TPDistinctIds{}, map[string]string{}, nil)
ids, err := m.InStorDB().GetTpTableIds(tpid, utils.TBLTPSuppliers, utils.TPDistinctIds{"id"}, map[string]string{}, nil)
if err != nil {
return err
}