From 6e3b635868c21ca2033e2517176c2258103fdae6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E9=87=91=E5=8B=87?= Date: Thu, 13 Apr 2023 07:36:12 +0000 Subject: [PATCH] * Add default value for zt_workflowaction. --- db/update18.3.sql | 11 +++++++++++ db/zentao.sql | 22 +++++++++++----------- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/db/update18.3.sql b/db/update18.3.sql index 1b974ee0c7..3cc86a4335 100644 --- a/db/update18.3.sql +++ b/db/update18.3.sql @@ -785,6 +785,17 @@ CHANGE `editedBy` `editedBy` varchar(30) NOT NULL DEFAULT '', CHANGE `editedDate` `editedDate` datetime NULL; ALTER TABLE `zt_workflowaction` +CHANGE `order` `order` smallint unsigned NOT NULL DEFAULT '0', +CHANGE `virtual` `virtual` tinyint unsigned NOT NULL DEFAULT '0', +CHANGE `conditions` `conditions` text NULL, +CHANGE `verifications` `verifications` text NULL, +CHANGE `hooks` `hooks` text NULL, +CHANGE `linkages` `linkages` text NULL, +CHANGE `js` `js` text NULL, +CHANGE `css` `css` text NULL, +CHANGE `toList` `toList` char(255) NOT NULL DEFAULT '', +CHANGE `blocks` `blocks` text NULL, +CHANGE `desc` `desc` text NULL, CHANGE `editedBy` `editedBy` varchar(30) NOT NULL DEFAULT '', CHANGE `editedDate` `editedDate` datetime NULL; diff --git a/db/zentao.sql b/db/zentao.sql index c15400026b..188030fdb5 100755 --- a/db/zentao.sql +++ b/db/zentao.sql @@ -8923,19 +8923,19 @@ CREATE TABLE IF NOT EXISTS `zt_workflowaction` ( `position` enum('menu','browseandview','browse','view') NOT NULL DEFAULT 'browseandview', `layout` char(20) NOT NULL, `show` enum('dropdownlist','direct') NOT NULL DEFAULT 'dropdownlist', - `order` smallint(5) unsigned NOT NULL, + `order` smallint(5) unsigned NOT NULL DEFAULT '0', `buildin` tinyint(1) unsigned NOT NULL, `role` varchar(10) NOT NULL DEFAULT 'custom', - `virtual` tinyint(1) unsigned NOT NULL, - `conditions` text NOT NULL, - `verifications` text NOT NULL, - `hooks` text NOT NULL, - `linkages` text NOT NULL, - `js` text NOT NULL, - `css` text NOT NULL, - `toList` char(255) NOT NULL, - `blocks` text NOT NULL, - `desc` text NOT NULL, + `virtual` tinyint(1) unsigned NOT NULL DEFAULT '0', + `conditions` text NULL, + `verifications` text NULL, + `hooks` text NULL, + `linkages` text NULL, + `js` text NULL, + `css` text NULL, + `toList` char(255) NOT NULL DEFAULT '', + `blocks` text NULL, + `desc` text NULL, `status` varchar(10) NOT NULL DEFAULT 'enable', `vision` varchar(10) NOT NULL DEFAULT 'rnd', `createdBy` varchar(30) NOT NULL,