diff --git a/db_scripts/diff/15019.down b/db_scripts/diff/15019.down new file mode 100644 index 00000000..a1248fe8 --- /dev/null +++ b/db_scripts/diff/15019.down @@ -0,0 +1,5 @@ +USE billing; + +ALTER TABLE `billing`.`admins` + DROP COLUMN `ssl_client_m_serial`, + DROP INDEX `ssl_client_m_serial_UNIQUE`; diff --git a/db_scripts/diff/15019.up b/db_scripts/diff/15019.up index 68c96a6b..955a19e3 100644 --- a/db_scripts/diff/15019.up +++ b/db_scripts/diff/15019.up @@ -38,3 +38,8 @@ CREATE TABLE `autoprov_field_device_lines` ( CONSTRAINT `fk_fdev_line_const` FOREIGN KEY (`device_id`) REFERENCES `autoprov_field_devices` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fk_sub_line_const` FOREIGN KEY (`subscriber_id`) REFERENCES `voip_subscribers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB; + +USE billing; +ALTER TABLE `admins` + ADD COLUMN `ssl_client_m_serial` BIGINT UNSIGNED NULL DEFAULT NULL AFTER `lawful_intercept`, + ADD UNIQUE INDEX `ssl_client_m_serial_UNIQUE` (`ssl_client_m_serial` ASC);