MT#11157 - create db "stats", move sipstats.call_info to stats.call_info

Change-Id: Iae82b3a64e9a74f137a8e18e37a97dc84a7dc154
changes/78/1178/2
Kirill Solomko 10 years ago
parent ece69fab7d
commit 6c54fdfb66

@ -0,0 +1,12 @@
use sipstats;
set autocommit=0;
REVOKE SELECT,INSERT,UPDATE ON stats.call_info FROM 'mediator'@'localhost';
ALTER TABLE stats.call_info RENAME sipstats.call_info;
DROP DATABASE stats;
GRANT SELECT,INSERT,UPDATE ON sipstats.call_info TO 'mediator'@'localhost';
commit;

@ -0,0 +1,12 @@
use sipstats;
set autocommit=0;
REVOKE SELECT,INSERT,UPDATE ON sipstats.call_info FROM 'mediator'@'localhost';
CREATE DATABASE stats;
ALTER TABLE sipstats.call_info RENAME stats.call_info;
GRANT SELECT,INSERT,UPDATE ON stats.call_info TO 'mediator'@'localhost';
commit;
Loading…
Cancel
Save