mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Rename table (tp_lcrs -> tp_lcr)
This commit is contained in:
committed by
Dan Christian Bogos
parent
300ac101ce
commit
1a5815acde
@@ -491,8 +491,8 @@ CREATE TABLE tp_filters (
|
||||
-- Table structure for table `tp_lcr`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS tp_lcrs;
|
||||
CREATE TABLE tp_lcrs (
|
||||
DROP TABLE IF EXISTS tp_lcr;
|
||||
CREATE TABLE tp_lcr (
|
||||
`pk` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`tpid` varchar(64) NOT NULL,
|
||||
`tenant` varchar(64) NOT NULL,
|
||||
|
||||
@@ -481,11 +481,11 @@ CREATE TABLE tp_filters (
|
||||
CREATE INDEX tp_filters_unique ON tp_filters ("tpid","tenant", "id", "filter_type", "filter_field_name");
|
||||
|
||||
--
|
||||
-- Table structure for table `tp_resources`
|
||||
-- Table structure for table `tp_lcr`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS tp_lcrs;
|
||||
CREATE TABLE tp_lcrs (
|
||||
DROP TABLE IF EXISTS tp_lcr;
|
||||
CREATE TABLE tp_lcr (
|
||||
"pk" SERIAL PRIMARY KEY,
|
||||
"tpid" varchar(64) NOT NULL,
|
||||
"tenant"varchar(64) NOT NULL,
|
||||
@@ -500,8 +500,8 @@ CREATE TABLE tp_filters (
|
||||
"weight" decimal(8,2) NOT NULL,
|
||||
"created_at" TIMESTAMP WITH TIME ZONE
|
||||
);
|
||||
CREATE INDEX tp_lcrs_idx ON tp_lcrs (tpid);
|
||||
CREATE INDEX tp_lcrs_unique ON tp_lcrs ("tpid", "tenant", "id", "filter_ids");
|
||||
CREATE INDEX tp_lcr_idx ON tp_lcr (tpid);
|
||||
CREATE INDEX tp_lcr_unique ON tp_lcr ("tpid", "tenant", "id", "filter_ids");
|
||||
|
||||
--
|
||||
-- Table structure for table `versions`
|
||||
|
||||
@@ -113,7 +113,7 @@ const (
|
||||
TBLTPStats = "tp_stats"
|
||||
TBLTPThresholds = "tp_thresholds"
|
||||
TBLTPFilters = "tp_filters"
|
||||
TBLTPLcr = "tp_lcrs"
|
||||
TBLTPLcr = "tp_lcr"
|
||||
TBLSMCosts = "sm_costs"
|
||||
TBLCDRs = "cdrs"
|
||||
TBLVersions = "versions"
|
||||
|
||||
Reference in New Issue
Block a user