mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-21 23:28:44 +05:00
Renaming tp_cdrstats -> tp_cdr_stats in storage models
This commit is contained in:
@@ -299,11 +299,11 @@ CREATE TABLE tp_derived_chargers (
|
||||
|
||||
|
||||
--
|
||||
-- Table structure for table `tp_cdrstats`
|
||||
-- Table structure for table `tp_cdr_stats`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS tp_cdrstats;
|
||||
CREATE TABLE tp_cdrstats (
|
||||
DROP TABLE IF EXISTS tp_cdr_stats;
|
||||
CREATE TABLE tp_cdr_stats (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`tpid` varchar(64) NOT NULL,
|
||||
`tag` varchar(64) NOT NULL,
|
||||
|
||||
@@ -294,11 +294,11 @@ CREATE INDEX tpderivedchargers_idx ON tp_derived_chargers (tpid,loadid,direction
|
||||
|
||||
|
||||
--
|
||||
-- Table structure for table `tp_cdrstats`
|
||||
-- Table structure for table `tp_cdr_stats`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS tp_cdrstats;
|
||||
CREATE TABLE tp_cdrstats (
|
||||
DROP TABLE IF EXISTS tp_cdr_stats;
|
||||
CREATE TABLE tp_cdr_stats (
|
||||
id SERIAL PRIMARY KEY,
|
||||
tpid VARCHAR(64) NOT NULL,
|
||||
tag VARCHAR(64) NOT NULL,
|
||||
|
||||
@@ -320,6 +320,10 @@ type TpCdrstat struct {
|
||||
CreatedAt time.Time
|
||||
}
|
||||
|
||||
func (t TpCdrstat) TableName() string {
|
||||
return utils.TBL_TP_CDR_STATS
|
||||
}
|
||||
|
||||
type TblCdrsPrimary struct {
|
||||
Id int64
|
||||
Cgrid string
|
||||
|
||||
@@ -51,7 +51,7 @@ const (
|
||||
TBL_TP_RATING_PLANS = "tp_rating_plans"
|
||||
TBL_TP_RATE_PROFILES = "tp_rating_profiles"
|
||||
TBL_TP_SHARED_GROUPS = "tp_shared_groups"
|
||||
TBL_TP_CDR_STATS = "tp_cdrstats"
|
||||
TBL_TP_CDR_STATS = "tp_cdr_stats"
|
||||
TBL_TP_LCRS = "tp_lcr_rules"
|
||||
TBL_TP_ACTIONS = "tp_actions"
|
||||
TBL_TP_ACTION_PLANS = "tp_action_plans"
|
||||
|
||||
Reference in New Issue
Block a user