diff --git a/db/zm_create.sql.in b/db/zm_create.sql.in index 3c3b6aacd..0f274e9b4 100644 --- a/db/zm_create.sql.in +++ b/db/zm_create.sql.in @@ -611,6 +611,7 @@ CREATE TABLE `Monitors` ( `Longitude` DECIMAL(11,8), `RTSPServer` BOOLEAN NOT NULL DEFAULT FALSE, `RTSPStreamName` varchar(255) NOT NULL default '', + `SOAP_wsa_compl BOOLEAN NOT NULL default TRUE, `Importance` enum('Normal','Less','Not') NOT NULL default 'Normal', `MQTT_Enabled` BOOLEAN NOT NULL DEFAULT false, `MQTT_Subscriptions` varchar(255) default '', diff --git a/db/zm_update-1.37.51.sql b/db/zm_update-1.37.51.sql new file mode 100644 index 000000000..f8f78d53b --- /dev/null +++ b/db/zm_update-1.37.51.sql @@ -0,0 +1,18 @@ +-- +-- Update Monitors table to have SOAP_wsa_compl +-- + +SELECT 'Checking for SOAP_wsa_compl in Monitors'; +SET @s = (SELECT IF( + (SELECT COUNT(*) + FROM INFORMATION_SCHEMA.COLUMNS + WHERE table_name = 'Monitors' + AND table_schema = DATABASE() + AND column_name = 'SOAP_wsa_compl' + ) > 0, +"SELECT 'Column SOAP_wsa_compl already exists on Monitors'", + "ALTER TABLE Monitors add SOAP_wsa_compl BOOLEAN NOT NULL default TRUE after RTSPStreamName" +)); + +PREPARE stmt FROM @s; +EXECUTE stmt; diff --git a/distros/redhat/zoneminder.spec b/distros/redhat/zoneminder.spec index a7ed063df..c8c72a0bb 100644 --- a/distros/redhat/zoneminder.spec +++ b/distros/redhat/zoneminder.spec @@ -18,7 +18,7 @@ %global zmtargetdistro %{?rhel:el%{rhel}}%{!?rhel:fc%{fedora}} Name: zoneminder -Version: 1.37.50 +Version: 1.37.51 Release: 2%{?dist} Summary: A camera monitoring and analysis tool Group: System Environment/Daemons diff --git a/version.txt b/version.txt index 310be82fc..b8586cb42 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.37.50 +1.37.51