mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
fixing doc refs for cgr-migrate from migrate to exec
This commit is contained in:
committed by
Dan Christian Bogos
parent
23deb84f9d
commit
9841dfc7eb
@@ -12,7 +12,7 @@ sed -i 's/config_dir/config_path/g' /usr/share/cgrates/tutorials/fs_evsock/cgrat
|
||||
sed -i 's/\/etc\/cgrates/\/etc\/cgrates -httprof_path=\/pprof -logger=*stdout/g' /usr/share/cgrates/tutorials/fs_evsock/cgrates/etc/init.d/cgrates
|
||||
|
||||
# Get our data ready
|
||||
/usr/bin/cgr-migrator -migrate=*set_versions -config_path=/usr/share/cgrates/tutorials/fs_evsock/cgrates/etc/cgrates/
|
||||
/usr/bin/cgr-migrator -exec=*set_versions -config_path=/usr/share/cgrates/tutorials/fs_evsock/cgrates/etc/cgrates/
|
||||
|
||||
# Let FreeSWITCH start up
|
||||
sleep 5
|
||||
|
||||
@@ -158,7 +158,7 @@ Once database setup is completed, we need to write the versions data. To do this
|
||||
Sample usage for MySQL:
|
||||
::
|
||||
|
||||
cgr-migrator -stordb_passwd="CGRateS.org" -migrate="*set_versions"
|
||||
cgr-migrator -stordb_passwd="CGRateS.org" -exec="*set_versions"
|
||||
|
||||
|
||||
3.3.3.Git
|
||||
|
||||
@@ -43,7 +43,7 @@ As described in post-install section, we will need to set up the MySQL_ database
|
||||
Once the database is in place, we can now set versions:
|
||||
::
|
||||
|
||||
cgr-migrator -stordb_passwd="CGRateS.org" -migrate="*set_versions"
|
||||
cgr-migrator -stordb_passwd="CGRateS.org" -exec="*set_versions"
|
||||
|
||||
At this point we have **CGRateS** installed but not yet configured. To facilitate understanding and speed up the process, **CGRateS** has the configurations used in these tutorials available in the */usr/share/cgrates/tutorials* folder.
|
||||
|
||||
|
||||
@@ -26,17 +26,17 @@ import (
|
||||
|
||||
var (
|
||||
dataDBVers = map[string]string{
|
||||
utils.Accounts: "cgr-migrator -migrate=*accounts",
|
||||
utils.Attributes: "cgr-migrator -migrate=*attributes",
|
||||
utils.Actions: "cgr-migrator -migrate=*actions",
|
||||
utils.ActionTriggers: "cgr-migrator -migrate=*action_triggers",
|
||||
utils.ActionPlans: "cgr-migrator -migrate=*action_plans",
|
||||
utils.SharedGroups: "cgr-migrator -migrate=*shared_groups",
|
||||
utils.Thresholds: "cgr-migrator -migrate=*thresholds",
|
||||
utils.Accounts: "cgr-migrator -exec=*accounts",
|
||||
utils.Attributes: "cgr-migrator -exec=*attributes",
|
||||
utils.Actions: "cgr-migrator -exec=*actions",
|
||||
utils.ActionTriggers: "cgr-migrator -exec=*action_triggers",
|
||||
utils.ActionPlans: "cgr-migrator -exec=*action_plans",
|
||||
utils.SharedGroups: "cgr-migrator -exec=*shared_groups",
|
||||
utils.Thresholds: "cgr-migrator -exec=*thresholds",
|
||||
}
|
||||
storDBVers = map[string]string{
|
||||
utils.CostDetails: "cgr-migrator -migrate=*cost_details",
|
||||
utils.SessionSCosts: "cgr-migrator -migrate=*sessions_costs",
|
||||
utils.CostDetails: "cgr-migrator -exec=*cost_details",
|
||||
utils.SessionSCosts: "cgr-migrator -exec=*sessions_costs",
|
||||
}
|
||||
allVers map[string]string // init will fill this with a merge of data+stor
|
||||
)
|
||||
@@ -67,7 +67,7 @@ func CheckVersions(storage Storage) error {
|
||||
return err
|
||||
}
|
||||
if !empty {
|
||||
return fmt.Errorf("No versions defined: please backup cgrates data and run : <cgr-migrator -migrate=*set_versions>")
|
||||
return fmt.Errorf("No versions defined: please backup cgrates data and run : <cgr-migrator -exec=*set_versions>")
|
||||
}
|
||||
// no data, safe to write version
|
||||
if err := OverwriteDBVersions(storage); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user