mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-24 16:48:45 +05:00
Added move feature(to migrate data from one db to another) and updated GetTPIds , IsDBempty and the versioning accordingly
This commit is contained in:
130
utils/consts.go
130
utils/consts.go
@@ -392,19 +392,8 @@ const (
|
||||
StoppedCaps = "STOPPED"
|
||||
SchedulerNotRunningCaps = "SCHEDULLER_NOT_RUNNING"
|
||||
MetaScheduler = "*scheduler"
|
||||
MetaCostDetails = "*cost_details"
|
||||
MetaAccounts = "*accounts"
|
||||
MetaActionPlans = "*action_plans"
|
||||
MetaActionTriggers = "*action_triggers"
|
||||
MetaActions = "*actions"
|
||||
MetaSharedGroups = "*shared_groups"
|
||||
MetaStats = "*stats"
|
||||
MetaThresholds = "*thresholds"
|
||||
Migrator = "migrator"
|
||||
UnsupportedMigrationTask = "unsupported migration task"
|
||||
NoStorDBConnection = "not connected to StorDB"
|
||||
UndefinedVersion = "undefined version"
|
||||
MetaSetVersions = "*set_versions"
|
||||
UnsupportedDB = "unsupported database"
|
||||
ACCOUNT_SUMMARY = "AccountSummary"
|
||||
TxtSuffix = ".txt"
|
||||
@@ -429,13 +418,6 @@ const (
|
||||
MetaEveryMinute = "*every_minute"
|
||||
MetaHourly = "*hourly"
|
||||
ID = "ID"
|
||||
MetaASR = "*asr"
|
||||
MetaACD = "*acd"
|
||||
MetaTCD = "*tcd"
|
||||
MetaACC = "*acc"
|
||||
MetaTCC = "*tcc"
|
||||
MetaPDD = "*pdd"
|
||||
MetaDDC = "*ddc"
|
||||
CacheDestinations = "destinations"
|
||||
CacheReverseDestinations = "reverse_destinations"
|
||||
CacheRatingPlans = "rating_plans"
|
||||
@@ -491,13 +473,123 @@ const (
|
||||
Disabled = "Disabled"
|
||||
Action = "Action"
|
||||
ThresholdSv1ProcessEvent = "ThresholdSv1.ProcessEvent"
|
||||
MetaNow = "*now"
|
||||
SMGenericV2UpdateSession = "SMGenericV2.UpdateSession"
|
||||
SMGenericV2InitiateSession = "SMGenericV2.InitiateSession"
|
||||
SMGenericV1UpdateSession = "SMGenericV1.UpdateSession"
|
||||
SMGenericV1InitiateSession = "SMGenericV1.InitiateSession"
|
||||
)
|
||||
|
||||
//Meta
|
||||
const (
|
||||
MetaASR = "*asr"
|
||||
MetaACD = "*acd"
|
||||
MetaTCD = "*tcd"
|
||||
MetaACC = "*acc"
|
||||
MetaTCC = "*tcc"
|
||||
MetaPDD = "*pdd"
|
||||
MetaDDC = "*ddc"
|
||||
MetaNow = "*now"
|
||||
)
|
||||
|
||||
//Migrator Metas
|
||||
const (
|
||||
MetaSetVersions = "*set_versions"
|
||||
MetaCostDetails = "*cost_details"
|
||||
MetaAccounts = "*accounts"
|
||||
MetaActionPlans = "*action_plans"
|
||||
MetaActionTriggers = "*action_triggers"
|
||||
MetaActions = "*actions"
|
||||
MetaSharedGroups = "*shared_groups"
|
||||
MetaStats = "*stats"
|
||||
MetaThresholds = "*thresholds"
|
||||
MetaRatingPlans = "*ratingplans"
|
||||
MetaRatingProfile = "*ratingprofile"
|
||||
MetaDestinations = "*destinations"
|
||||
MetaReverseDestinations = "*reversedestinations"
|
||||
MetaLCR = "*lcr"
|
||||
MetaCdrStats = "*cdrstats"
|
||||
MetaTiming = "*Timing"
|
||||
MetaRQF = "*RQF"
|
||||
MetaResource = "*Resource"
|
||||
MetaReverseAlias = "*ReverseAlias"
|
||||
MetaAlias = "*Alias"
|
||||
MetaUser = "*User"
|
||||
MetaSubscribers = "*Subscribers"
|
||||
MetaDerivedChargersV = "*DerivedChargers"
|
||||
Migrator = "migrator"
|
||||
UnsupportedMigrationTask = "unsupported migration task"
|
||||
MetaTpRatingPlans = "*TpRatingPlans"
|
||||
MetaTpLcrs = "*TpLcrs"
|
||||
MetaTpFilters = "*TpFilters"
|
||||
MetaTpDestinationRates = "*TpDestinationRates"
|
||||
MetaTpActionTriggers = "*TpActionTriggers"
|
||||
MetaTpAccountActions = "*TpAccountActions"
|
||||
MetaTpActionPlans = "*TpActionPlans"
|
||||
MetaTpActions = "*TpActions"
|
||||
MetaTpDerivedCharges = "*TpDerivedCharges"
|
||||
MetaTpThresholds = "*TpThresholds"
|
||||
MetaTpStats = "*TpStats"
|
||||
MetaTpSharedGroups = "*TpSharedGroups"
|
||||
MetaTpRatingProfiles = "*TpRatingProfiles"
|
||||
MetaTpResources = "*TpResources"
|
||||
MetaTpRates = "*TpRates"
|
||||
MetaTpTiming = "*TpTiming"
|
||||
MetaTpResource = "*TpResource"
|
||||
MetaTpAliases = "*TpAliases"
|
||||
MetaTpUsers = "*TpUsers"
|
||||
MetaTpDerivedChargersV = "*TpDerivedChargers"
|
||||
MetaTpCdrStats = "*TpCdrStats"
|
||||
MetaTpDestinations = "*TpDestinations"
|
||||
MetaTpLCR = "*TpLCR"
|
||||
MetaTpRatingPlan = "*TpRatingPlan"
|
||||
MetaTpRatingProfile = "*TpRatingProfile"
|
||||
MetaStorDB = "*StorDB"
|
||||
MetaDataDB = "*DataDB"
|
||||
)
|
||||
|
||||
//versions
|
||||
const (
|
||||
TpRatingPlans = "TpRatingPlans"
|
||||
TpLcrs = "TpLcrs"
|
||||
TpFilters = "TpFilters"
|
||||
TpDestinationRates = "TpDestinationRates"
|
||||
TpActionTriggers = "TpActionTriggers"
|
||||
TpAccountActions = "TpAccountActions"
|
||||
TpActionPlans = "TpActionPlans"
|
||||
TpActions = "TpActions"
|
||||
TpDerivedCharges = "TpDerivedCharges"
|
||||
TpThresholds = "TpThresholds"
|
||||
TpStats = "TpStats"
|
||||
TpSharedGroups = "TpSharedGroups"
|
||||
TpRatingProfiles = "TpRatingProfiles"
|
||||
TpResources = "TpResources"
|
||||
TpRates = "TpRates"
|
||||
TpTiming = "TpTiming"
|
||||
TpResource = "TpResource"
|
||||
TpAliases = "TpAliases"
|
||||
TpUsers = "TpUsers"
|
||||
TpDerivedChargersV = "TpDerivedChargers"
|
||||
TpCdrStats = "TpCdrStats"
|
||||
TpDestinations = "TpDestinations"
|
||||
TpLCR = "TpLCR"
|
||||
TpRatingPlan = "TpRatingPlan"
|
||||
TpRatingProfile = "TpRatingProfile"
|
||||
Timing = "Timing"
|
||||
RQF = "RQF"
|
||||
Resource = "Resource"
|
||||
ReverseAlias = "ReverseAlias"
|
||||
Alias = "Alias"
|
||||
User = "User"
|
||||
Subscribers = "Subscribers"
|
||||
DerivedChargersV = "DerivedChargers"
|
||||
CdrStats = "CdrStats"
|
||||
Destinations = "Destinations"
|
||||
ReverseDestinations = "ReverseDestinations"
|
||||
LCR = "LCR"
|
||||
RatingPlan = "RatingPlan"
|
||||
RatingProfile = "RatingProfile"
|
||||
)
|
||||
|
||||
func buildCacheInstRevPrefixes() {
|
||||
CachePrefixToInstance = make(map[string]string)
|
||||
for k, v := range CacheInstanceToPrefix {
|
||||
|
||||
Reference in New Issue
Block a user