TT#13005 add table to store call recording metadata

Change-Id: I5dcbe08ac529106a4868b8f48ada168128ca5265
changes/48/12148/2
Richard Fuchs 8 years ago
parent 5fce716600
commit 41f847e412

@ -0,0 +1,8 @@
use provisioning;
set autocommit=0;
DROP TABLE `recording_metakeys`;
revoke all on provisioning.recording_metakeys from 'rtpengine'@'localhost';
commit;

@ -0,0 +1,17 @@
use provisioning;
set autocommit=0;
CREATE TABLE `recording_metakeys` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`call` int(10) unsigned NOT NULL,
`key` char(255) NOT NULL,
`value` char(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `prim_lookup` (`value`,`key`),
KEY `fk_call_idx` (`call`),
CONSTRAINT `fk_call_idx` FOREIGN KEY (`call`) REFERENCES `recording_calls` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB;
grant all on provisioning.recording_metakeys to 'rtpengine'@'localhost';
commit;
Loading…
Cancel
Save