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.
(cherry picked from commit 1a92d0b7d5)
Change-Id: Iba46ac1bcb7d635fade3896f6e2b04b3396058e8
mr26.0
parent
efd95d2f64
commit
916f12bce5
@ -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`);
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue