Added explicit mesage for no versions in database

This commit is contained in:
Trial97
2019-01-07 15:11:24 +02:00
committed by Dan Christian Bogos
parent eaa8147633
commit 36798b8eaf

View File

@@ -67,7 +67,7 @@ func CheckVersions(storage Storage) error {
return err
}
if !empty {
return fmt.Errorf("Migration needed: please backup cgrates data and run : <cgr-migrator>")
return fmt.Errorf("No versions defined: please backup cgrates data and run : <cgr-migrator -migrate=*set_versions>")
}
// no data, safe to write version
if err := OverwriteDBVersions(storage); err != nil {