[icinga-checkins] icinga.org: icingaweb2-module-director/master: mysql/schema: allow longer commands

git at icinga.org git at icinga.org
Tue Feb 2 20:10:05 CET 2016


Module: icingaweb2-module-director
Branch: master
Commit: 0b36b39cf71799128fb433a694d743832b3d622d
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=0b36b39cf71799128fb433a694d743832b3d622d

Author: Thomas Gelf <thomas at gelf.net>
Date:   Tue Feb  2 20:08:49 2016 +0100

mysql/schema: allow longer commands

fixes #11023

---

 schema/mysql-changes/upgrade_62.sql |    1 +
 schema/mysql.sql                    |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/schema/mysql-changes/upgrade_62.sql b/schema/mysql-changes/upgrade_62.sql
new file mode 100644
index 0000000..a3aba5f
--- /dev/null
+++ b/schema/mysql-changes/upgrade_62.sql
@@ -0,0 +1 @@
+ALTER TABLE icinga_command MODIFY command TEXT DEFAULT NULL;
diff --git a/schema/mysql.sql b/schema/mysql.sql
index d7d387c..aec5c85 100644
--- a/schema/mysql.sql
+++ b/schema/mysql.sql
@@ -236,7 +236,7 @@ CREATE TABLE icinga_command (
   id INT(10) UNSIGNED AUTO_INCREMENT NOT NULL,
   object_name VARCHAR(255) NOT NULL,
   methods_execute VARCHAR(64) DEFAULT NULL,
-  command VARCHAR(255) DEFAULT NULL,
+  command TEXT DEFAULT NULL,
   -- env text DEFAULT NULL,
   -- vars text DEFAULT NULL,
   timeout SMALLINT UNSIGNED DEFAULT NULL,



More information about the icinga-checkins mailing list