diff --git a/db/update12.5.3.sql b/db/update12.5.3.sql index 9dbed41d4b..8125481c90 100644 --- a/db/update12.5.3.sql +++ b/db/update12.5.3.sql @@ -34,7 +34,7 @@ ALTER TABLE `zt_doclib` CHANGE `project` `execution` mediumint(8) unsigned NOT N ALTER TABLE `zt_task` CHANGE `project` `execution` mediumint(8) unsigned NOT NULL; ALTER TABLE `zt_testreport` CHANGE `project` `execution` mediumint(8) unsigned NOT NULL; ALTER TABLE `zt_testtask` CHANGE `project` `execution` mediumint(8) unsigned NOT NULL; -ALTER TABLE `zt_webhook` CHANGE `projects` `executions` mediumint(8) unsigned NOT NULL; +ALTER TABLE `zt_webhook` CHANGE `projects` `executions` text NOT NULL; ALTER TABLE `zt_action` ADD `project` mediumint(8) unsigned NOT NULL AFTER `product`; ALTER TABLE `zt_task` ADD `project` mediumint(8) unsigned NOT NULL AFTER `id`; diff --git a/db/update15.0.rc3.sql b/db/update15.0.rc3.sql new file mode 100644 index 0000000000..a178bfc08c --- /dev/null +++ b/db/update15.0.rc3.sql @@ -0,0 +1,2 @@ +ALTER TABLE `zt_webhook` CHANGE `projects` `executions` text NOT NULL; +ALTER TABLE `zt_webhook` CHANGE `executions` `executions` text NOT NULL; diff --git a/module/upgrade/model.php b/module/upgrade/model.php index 25b6a72c11..8ad08e56ac 100644 --- a/module/upgrade/model.php +++ b/module/upgrade/model.php @@ -1475,7 +1475,7 @@ class upgradeModel extends model $this->saveLogs('Run Method ' . __FUNCTION__); $mysqlVersion = $this->loadModel('install')->getMysqlVersion(); - $ignoreCode = '|1050|1060|1091|1061|'; + $ignoreCode = '|1050|1054|1060|1091|1061|'; /* Read the sql file to lines, remove the comment lines, then join theme by ';'. */ $sqls = explode("\n", file_get_contents($sqlFile));