From d737e81e216671e03d2cea18d7d30f2b265c605f Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 6 Mar 2019 14:57:05 -0500 Subject: [PATCH] bump version for DefaultCodec in monitors --- db/zm_update-1.33.4.sql | 12 ++++++++++++ version | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 db/zm_update-1.33.4.sql diff --git a/db/zm_update-1.33.4.sql b/db/zm_update-1.33.4.sql new file mode 100644 index 000000000..cffa35aa5 --- /dev/null +++ b/db/zm_update-1.33.4.sql @@ -0,0 +1,12 @@ + +SET @s = (SELECT IF( + (SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = DATABASE() + AND table_name = 'Monitors' + AND column_name = 'DefaultCodec' + ) > 0, + "SELECT 'Column DefaultCodec already exists in Monitors'", + "ALTER TABLE Monitors ADD `DefaultCodec` enum('auto','H264','H265','MJPEG') NOT NULL default 'auto', AFTER `DefaultScale`" + )); + +PREPARE stmt FROM @s; +EXECUTE stmt; diff --git a/version b/version index c7f962f33..9f406e0c8 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.33.3 +1.33.4