mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Added explicit mesage for no versions in database
This commit is contained in:
committed by
Dan Christian Bogos
parent
eaa8147633
commit
36798b8eaf
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user