mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-21 23:28:44 +05:00
Added Tenant to resources
This commit is contained in:
@@ -66,11 +66,15 @@ DIR="$(dirname "$(readlink -f "$0")")"
|
||||
case $datadb in
|
||||
|
||||
"redis")
|
||||
./dbsmerge_redis.py
|
||||
echo "executing dbsmerge_redis.py"
|
||||
./dbsmerge_redis.py
|
||||
echo "done!"
|
||||
;;
|
||||
|
||||
"mongo")
|
||||
echo "executing dbsmerge_mongo.py"
|
||||
./dbsmerge_mongo.py
|
||||
echo "done!"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
@@ -397,6 +397,7 @@ CREATE TABLE tp_aliases (
|
||||
|
||||
DROP TABLE IF EXISTS tp_resources;
|
||||
CREATE TABLE tp_resources (
|
||||
`tenant` varchar(64) NOT NULL,
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`tpid` varchar(64) NOT NULL,
|
||||
`tag` varchar(64) NOT NULL,
|
||||
|
||||
@@ -393,6 +393,7 @@ CREATE INDEX tpaliases_idx ON tp_aliases (tpid,direction,tenant,category,account
|
||||
|
||||
DROP TABLE IF EXISTS tp_resources;
|
||||
CREATE TABLE tp_resources (
|
||||
"tenant"varchar(64) NOT NULL,
|
||||
"id" SERIAL PRIMARY KEY,
|
||||
"tpid" varchar(64) NOT NULL,
|
||||
"tag" varchar(64) NOT NULL,
|
||||
|
||||
Reference in New Issue
Block a user