mirror of https://github.com/sipwise/db-schema.git
New columns: - 'id' - new PK for the 'sems_registrations' - 'peer_host_id' - for filling it with IDs of SIP peerings Remark: 'peer_host_id' and 'subscriber_id' must be null by default. Change-Id: I7ecaa42e540a96a5d6835a78e391adc909aab111mr10.1
parent
cbd60cb337
commit
b8bac3a905
@ -0,0 +1,7 @@
|
||||
use kamailio;
|
||||
ALTER TABLE kamailio.sems_registrations
|
||||
DROP PRIMARY KEY,
|
||||
MODIFY `subscriber_id` int(11) NOT NULL,
|
||||
ADD PRIMARY KEY (`subscriber_id`),
|
||||
DROP COLUMN `id`,
|
||||
DROP COLUMN `peer_host_id`;
|
@ -0,0 +1,6 @@
|
||||
use kamailio;
|
||||
ALTER TABLE kamailio.sems_registrations
|
||||
DROP PRIMARY KEY,
|
||||
ADD COLUMN `id` INT UNSIGNED PRIMARY KEY AUTO_INCREMENT,
|
||||
ADD COLUMN `peer_host_id` int(10) UNSIGNED DEFAULT NULL,
|
||||
MODIFY `subscriber_id` int(10) UNSIGNED DEFAULT NULL;
|
Loading…
Reference in new issue