From a127728502e3aa4081f819d1be16ff9fb6bcbd40 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Fri, 13 Sep 2024 14:13:50 +0800 Subject: [PATCH] * [refac] Adjust belong fields order. --- module/upgrade/model.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/upgrade/model.php b/module/upgrade/model.php index b182208807..abf12b60e7 100644 --- a/module/upgrade/model.php +++ b/module/upgrade/model.php @@ -9890,6 +9890,7 @@ class upgradeModel extends model } $defaultData = array('type' => 'mediumint', 'length' => '8', 'control' => 'select', 'readonly' => 1, 'buildin' => 1, 'role' => 'default'); + $orders = array('program' => '1', 'product' => '2', 'project' => '3', 'execution' => '4'); $fields = array(); $fields['execution'] = "ALTER TABLE %table% ADD `execution` mediumint(8) unsigned NOT NULL DEFAULT 0 AFTER `id`"; $fields['project'] = "ALTER TABLE %table% ADD `project` mediumint(8) unsigned NOT NULL DEFAULT 0 AFTER `id`"; @@ -9934,6 +9935,7 @@ class upgradeModel extends model $data['field'] = $field; $data['name'] = $this->lang->upgrade->flowFields[$field]; $data['options'] = $field; + $data['order'] = $orders[$field]; $this->dao->replace(TABLE_WORKFLOWFIELD)->data($data)->exec(); } }