mirror of https://github.com/sipwise/db-schema.git
Change-Id: I3ecb96e8bb45c2423d471eaba280984e7536f17fchanges/98/8698/1
parent
144d001893
commit
13c65877bf
@ -0,0 +1,10 @@
|
|||||||
|
SET sql_log_bin=0;
|
||||||
|
|
||||||
|
USE kamailio;
|
||||||
|
|
||||||
|
ALTER TABLE sca_subscriptions
|
||||||
|
DROP COLUMN server_id,
|
||||||
|
DROP INDEX sca_expires_idx,
|
||||||
|
ADD INDEX sca_expires_idx (expires);
|
||||||
|
|
||||||
|
UPDATE version SET table_version=1 WHERE table_name="sca_subscriptions";
|
||||||
@ -0,0 +1,10 @@
|
|||||||
|
SET sql_log_bin=0;
|
||||||
|
|
||||||
|
USE kamailio;
|
||||||
|
|
||||||
|
ALTER TABLE sca_subscriptions
|
||||||
|
ADD COLUMN server_id INTEGER DEFAULT 0 NOT NULL,
|
||||||
|
DROP INDEX sca_expires_idx,
|
||||||
|
ADD INDEX sca_expires_idx (server_id, expires);
|
||||||
|
|
||||||
|
UPDATE version SET table_version=2 WHERE table_name="sca_subscriptions";
|
||||||
Loading…
Reference in new issue