mirror of https://github.com/sipwise/db-schema.git
Change-Id: I84d16fcabc78684686986bd77a4644ae67a3626fchanges/85/1085/3
parent
61ecaeb723
commit
b8172987ca
@ -0,0 +1,8 @@
|
||||
use sipstats;
|
||||
set autocommit=0;
|
||||
|
||||
REVOKE SELECT,INSERT,UPDATE ON sipstats.call_info FROM 'mediator'@'localhost';
|
||||
|
||||
DROP TABLE IF EXISTS sipstats.call_info;
|
||||
|
||||
commit;
|
||||
@ -0,0 +1,15 @@
|
||||
use sipstats;
|
||||
set autocommit=0;
|
||||
|
||||
CREATE TABLE `call_info` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`sip_code` varchar(3) NOT NULL,
|
||||
`period` datetime NOT NULL,
|
||||
`amount` int(11) unsigned NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `call_info_sip_code_period_idx` (`sip_code`,`period`)
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
GRANT SELECT,INSERT,UPDATE ON sipstats.call_info TO 'mediator'@'localhost';
|
||||
|
||||
commit;
|
||||
Loading…
Reference in new issue