mirror of https://github.com/sipwise/db-schema.git
* the column is needed to separate the date per site, when multi site is enabled, as well as to solve possible replication issues when mediators on each site concurrently write into the table concurrently. Change-Id: Iba46ac1bcb7d635fade3896f6e2b04b3396058e8mr26.1
parent
ce13242550
commit
1a92d0b7d5
@ -0,0 +1,6 @@
|
||||
USE stats;
|
||||
|
||||
ALTER TABLE stats.call_info
|
||||
DROP KEY `call_info_site_sip_code_period_idx`,
|
||||
ADD UNIQUE KEY `call_info_sip_code_period_idx` (`sip_code`,`period`),
|
||||
DROP COLUMN `site_id`;
|
||||
@ -0,0 +1,6 @@
|
||||
USE stats;
|
||||
|
||||
ALTER TABLE stats.call_info
|
||||
ADD `site_id` int(2) unsigned DEFAULT 1,
|
||||
DROP KEY `call_info_sip_code_period_idx`,
|
||||
ADD UNIQUE KEY `call_info_site_sip_code_period_idx` (`site_id`,`sip_code`,`period`);
|
||||
Loading…
Reference in new issue