Renaming tp_cdrstats -> tp_cdr_stats in storage models

This commit is contained in:
DanB
2015-07-08 18:50:17 +02:00
parent 8fb98ef1d2
commit cc762e9551
5 changed files with 11 additions and 7 deletions

View File

@@ -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,

View File

@@ -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,

View File

@@ -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

View File

@@ -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"