From 3879fa5df2e9a80e924d9df55e11a65de7dd71a2 Mon Sep 17 00:00:00 2001
From: TomXin <766781886@qq.com>
Date: 星期一, 13 五月 2024 16:29:43 +0800
Subject: [PATCH] 修正Oracle的sql

---
 script/sql/oracle/flowable.sql |  157 ++++++++++++++++++++++++++--------------------------
 1 files changed, 78 insertions(+), 79 deletions(-)

diff --git a/script/sql/oracle/flowable.sql b/script/sql/oracle/flowable.sql
index 52d547e..0773c39 100644
--- a/script/sql/oracle/flowable.sql
+++ b/script/sql/oracle/flowable.sql
@@ -38,19 +38,19 @@
     TENANT_ID   VARCHAR2(20)
 );
 
-comment on table TEST_LEAVE is '璇峰亣鐢宠琛�'
-comment on column TEST_LEAVE.ID is '涓婚敭'
-comment on column TEST_LEAVE.LEAVE_TYPE is '璇峰亣绫诲瀷'
-comment on column TEST_LEAVE.START_DATE is '寮�濮嬫椂闂�'
-comment on column TEST_LEAVE.END_DATE is '缁撴潫鏃堕棿'
-comment on column TEST_LEAVE.LEAVE_DAYS is '璇峰亣澶╂暟'
-comment on column TEST_LEAVE.REMARK is '璇峰亣鍘熷洜'
-comment on column TEST_LEAVE.CREATE_DEPT is '鍒涘缓閮ㄩ棬'
-comment on column TEST_LEAVE.CREATE_BY is '鍒涘缓鑰�'
-comment on column TEST_LEAVE.CREATE_TIME is '鍒涘缓鏃堕棿'
-comment on column TEST_LEAVE.UPDATE_BY is '鏇存柊鑰�'
-comment on column TEST_LEAVE.UPDATE_TIME is '鏇存柊鏃堕棿'
-comment on column TEST_LEAVE.TENANT_ID is '绉熸埛缂栧彿'
+comment on table TEST_LEAVE is '璇峰亣鐢宠琛�';
+comment on column TEST_LEAVE.ID is '涓婚敭';
+comment on column TEST_LEAVE.LEAVE_TYPE is '璇峰亣绫诲瀷';
+comment on column TEST_LEAVE.START_DATE is '寮�濮嬫椂闂�';
+comment on column TEST_LEAVE.END_DATE is '缁撴潫鏃堕棿';
+comment on column TEST_LEAVE.LEAVE_DAYS is '璇峰亣澶╂暟';
+comment on column TEST_LEAVE.REMARK is '璇峰亣鍘熷洜';
+comment on column TEST_LEAVE.CREATE_DEPT is '鍒涘缓閮ㄩ棬';
+comment on column TEST_LEAVE.CREATE_BY is '鍒涘缓鑰�';
+comment on column TEST_LEAVE.CREATE_TIME is '鍒涘缓鏃堕棿';
+comment on column TEST_LEAVE.UPDATE_BY is '鏇存柊鑰�';
+comment on column TEST_LEAVE.UPDATE_TIME is '鏇存柊鏃堕棿';
+comment on column TEST_LEAVE.TENANT_ID is '绉熸埛缂栧彿';
 
 -- 娴佺▼鍒嗙被淇℃伅琛�
 create table WF_CATEGORY
@@ -72,18 +72,18 @@
     UPDATE_TIME   DATE
 );
 
-comment on table WF_CATEGORY is '娴佺▼鍒嗙被'
-comment on column WF_CATEGORY.ID is '涓婚敭'
-comment on column WF_CATEGORY.CATEGORY_NAME is '鍒嗙被鍚嶇О'
-comment on column WF_CATEGORY.CATEGORY_CODE is '鍒嗙被缂栫爜'
-comment on column WF_CATEGORY.PARENT_ID is '鐖剁骇id'
-comment on column WF_CATEGORY.SORT_NUM is '鎺掑簭'
-comment on column WF_CATEGORY.TENANT_ID is '绉熸埛缂栧彿'
-comment on column WF_CATEGORY.CREATE_DEPT is '鍒涘缓閮ㄩ棬'
-comment on column WF_CATEGORY.CREATE_BY is '鍒涘缓鑰�'
-comment on column WF_CATEGORY.CREATE_TIME is '鍒涘缓鏃堕棿'
-comment on column WF_CATEGORY.UPDATE_BY is '鏇存柊鑰�'
-comment on column WF_CATEGORY.UPDATE_TIME is '鏇存柊鏃堕棿'
+comment on table WF_CATEGORY is '娴佺▼鍒嗙被';
+comment on column WF_CATEGORY.ID is '涓婚敭';
+comment on column WF_CATEGORY.CATEGORY_NAME is '鍒嗙被鍚嶇О';
+comment on column WF_CATEGORY.CATEGORY_CODE is '鍒嗙被缂栫爜';
+comment on column WF_CATEGORY.PARENT_ID is '鐖剁骇id';
+comment on column WF_CATEGORY.SORT_NUM is '鎺掑簭';
+comment on column WF_CATEGORY.TENANT_ID is '绉熸埛缂栧彿';
+comment on column WF_CATEGORY.CREATE_DEPT is '鍒涘缓閮ㄩ棬';
+comment on column WF_CATEGORY.CREATE_BY is '鍒涘缓鑰�';
+comment on column WF_CATEGORY.CREATE_TIME is '鍒涘缓鏃堕棿';
+comment on column WF_CATEGORY.UPDATE_BY is '鏇存柊鑰�';
+comment on column WF_CATEGORY.UPDATE_TIME is '鏇存柊鏃堕棿';
 INSERT INTO wf_category values (1, 'OA', 'OA', 0, 0, '000000', 103, 1, sysdate, 1, sysdate);
 
 create table WF_TASK_BACK_NODE
@@ -104,21 +104,20 @@
     UPDATE_BY     NUMBER(20),
     UPDATE_TIME   DATE
 );
-comment on table WF_TASK_BACK_NODE is '鑺傜偣瀹℃壒璁板綍'
-comment on column WF_TASK_BACK_NODE.ID is '涓婚敭'
-comment on column WF_TASK_BACK_NODE.NODE_ID is '鑺傜偣id'
-comment on column WF_TASK_BACK_NODE.NODE_NAME is '鑺傜偣鍚嶇О'
-comment on column WF_TASK_BACK_NODE.ORDER_NO is '鎺掑簭'
-comment on column WF_TASK_BACK_NODE.SORT_NUM is '鎺掑簭'
-comment on column WF_TASK_BACK_NODE.INSTANCE_ID is '娴佺▼瀹炰緥id'
-comment on column WF_TASK_BACK_NODE.TASK_TYPE is '鑺傜偣绫诲瀷'
-comment on column WF_TASK_BACK_NODE.ASSIGNEE is '瀹℃壒浜�'
-comment on column WF_TASK_BACK_NODE.TENANT_ID is '绉熸埛缂栧彿'
-comment on column WF_TASK_BACK_NODE.CREATE_DEPT is '鍒涘缓閮ㄩ棬'
-comment on column WF_TASK_BACK_NODE.CREATE_BY is '鍒涘缓鑰�'
-comment on column WF_TASK_BACK_NODE.CREATE_TIME is '鍒涘缓鏃堕棿'
-comment on column WF_TASK_BACK_NODE.UPDATE_BY is '鏇存柊鑰�'
-comment on column WF_TASK_BACK_NODE.UPDATE_TIME is '鏇存柊鏃堕棿'
+comment on table WF_TASK_BACK_NODE is '鑺傜偣瀹℃壒璁板綍';
+comment on column WF_TASK_BACK_NODE.ID is '涓婚敭';
+comment on column WF_TASK_BACK_NODE.NODE_ID is '鑺傜偣id';
+comment on column WF_TASK_BACK_NODE.NODE_NAME is '鑺傜偣鍚嶇О';
+comment on column WF_TASK_BACK_NODE.ORDER_NO is '鎺掑簭';
+comment on column WF_TASK_BACK_NODE.INSTANCE_ID is '娴佺▼瀹炰緥id';
+comment on column WF_TASK_BACK_NODE.TASK_TYPE is '鑺傜偣绫诲瀷';
+comment on column WF_TASK_BACK_NODE.ASSIGNEE is '瀹℃壒浜�';
+comment on column WF_TASK_BACK_NODE.TENANT_ID is '绉熸埛缂栧彿';
+comment on column WF_TASK_BACK_NODE.CREATE_DEPT is '鍒涘缓閮ㄩ棬';
+comment on column WF_TASK_BACK_NODE.CREATE_BY is '鍒涘缓鑰�';
+comment on column WF_TASK_BACK_NODE.CREATE_TIME is '鍒涘缓鏃堕棿';
+comment on column WF_TASK_BACK_NODE.UPDATE_BY is '鏇存柊鑰�';
+comment on column WF_TASK_BACK_NODE.UPDATE_TIME is '鏇存柊鏃堕棿';
 
 create table WF_DEFINITION_CONFIG
 (
@@ -139,19 +138,19 @@
     constraint uni_definition_id
         unique (definition_id)
 );
-comment on table WF_DEFINITION_CONFIG is '娴佺▼瀹氫箟閰嶇疆'
-comment on column WF_DEFINITION_CONFIG.ID is '涓婚敭'
-comment on column WF_DEFINITION_CONFIG.TABLE_NAME is '琛ㄥ悕'
-comment on column WF_DEFINITION_CONFIG.DEFINITION_ID is '娴佺▼瀹氫箟ID'
-comment on column WF_DEFINITION_CONFIG.PROCESS_KEY is '娴佺▼KEY'
-comment on column WF_DEFINITION_CONFIG.VERSION is '娴佺▼鐗堟湰'
-comment on column WF_DEFINITION_CONFIG.TENANT_ID is '绉熸埛缂栧彿'
-comment on column WF_DEFINITION_CONFIG.REMARK is '澶囨敞'
-comment on column WF_DEFINITION_CONFIG.CREATE_DEPT is '鍒涘缓閮ㄩ棬'
-comment on column WF_DEFINITION_CONFIG.CREATE_BY is '鍒涘缓鑰�'
-comment on column WF_DEFINITION_CONFIG.CREATE_TIME is '鍒涘缓鏃堕棿'
-comment on column WF_DEFINITION_CONFIG.UPDATE_BY is '鏇存柊鑰�'
-comment on column WF_DEFINITION_CONFIG.UPDATE_TIME is '鏇存柊鏃堕棿'
+comment on table WF_DEFINITION_CONFIG is '娴佺▼瀹氫箟閰嶇疆';
+comment on column WF_DEFINITION_CONFIG.ID is '涓婚敭';
+comment on column WF_DEFINITION_CONFIG.TABLE_NAME is '琛ㄥ悕';
+comment on column WF_DEFINITION_CONFIG.DEFINITION_ID is '娴佺▼瀹氫箟ID';
+comment on column WF_DEFINITION_CONFIG.PROCESS_KEY is '娴佺▼KEY';
+comment on column WF_DEFINITION_CONFIG.VERSION is '娴佺▼鐗堟湰';
+comment on column WF_DEFINITION_CONFIG.TENANT_ID is '绉熸埛缂栧彿';
+comment on column WF_DEFINITION_CONFIG.REMARK is '澶囨敞';
+comment on column WF_DEFINITION_CONFIG.CREATE_DEPT is '鍒涘缓閮ㄩ棬';
+comment on column WF_DEFINITION_CONFIG.CREATE_BY is '鍒涘缓鑰�';
+comment on column WF_DEFINITION_CONFIG.CREATE_TIME is '鍒涘缓鏃堕棿';
+comment on column WF_DEFINITION_CONFIG.UPDATE_BY is '鏇存柊鑰�';
+comment on column WF_DEFINITION_CONFIG.UPDATE_TIME is '鏇存柊鏃堕棿';
 
 create table WF_FORM_MANAGE
 (
@@ -170,18 +169,18 @@
     UPDATE_TIME   DATE
 );
 
-comment on table WF_FORM_MANAGE is '琛ㄥ崟绠$悊'
-comment on column WF_FORM_MANAGE.ID is '涓婚敭'
-comment on column WF_FORM_MANAGE.FORM_NAME is '琛ㄥ崟鍚嶇О'
-comment on column WF_FORM_MANAGE.FORM_TYPE is '琛ㄥ崟绫诲瀷'
-comment on column WF_FORM_MANAGE.ROUTER is '璺敱鍦板潃/琛ㄥ崟ID'
-comment on column WF_FORM_MANAGE.REMARK is '澶囨敞'
-comment on column WF_FORM_MANAGE.TENANT_ID is '绉熸埛缂栧彿'
-comment on column WF_FORM_MANAGE.CREATE_DEPT is '鍒涘缓閮ㄩ棬'
-comment on column WF_FORM_MANAGE.CREATE_BY is '鍒涘缓鑰�'
-comment on column WF_FORM_MANAGE.CREATE_TIME is '鍒涘缓鏃堕棿'
-comment on column WF_FORM_MANAGE.UPDATE_BY is '鏇存柊鑰�'
-comment on column WF_FORM_MANAGE.UPDATE_TIME is '鏇存柊鏃堕棿'
+comment on table WF_FORM_MANAGE is '琛ㄥ崟绠$悊';
+comment on column WF_FORM_MANAGE.ID is '涓婚敭';
+comment on column WF_FORM_MANAGE.FORM_NAME is '琛ㄥ崟鍚嶇О';
+comment on column WF_FORM_MANAGE.FORM_TYPE is '琛ㄥ崟绫诲瀷';
+comment on column WF_FORM_MANAGE.ROUTER is '璺敱鍦板潃/琛ㄥ崟ID';
+comment on column WF_FORM_MANAGE.REMARK is '澶囨敞';
+comment on column WF_FORM_MANAGE.TENANT_ID is '绉熸埛缂栧彿';
+comment on column WF_FORM_MANAGE.CREATE_DEPT is '鍒涘缓閮ㄩ棬';
+comment on column WF_FORM_MANAGE.CREATE_BY is '鍒涘缓鑰�';
+comment on column WF_FORM_MANAGE.CREATE_TIME is '鍒涘缓鏃堕棿';
+comment on column WF_FORM_MANAGE.UPDATE_BY is '鏇存柊鑰�';
+comment on column WF_FORM_MANAGE.UPDATE_TIME is '鏇存柊鏃堕棿';
 
 insert into wf_form_manage(id, form_name, form_type, router, remark, tenant_id, create_dept, create_by, create_time, update_by, update_time) VALUES (1, '璇峰亣鐢宠', 'static', '/demo/leaveEdit/index', NULL, '000000', 103, 1, sysdate, 1, sysdate);
 
@@ -204,20 +203,20 @@
     UPDATE_TIME      DATE
 );
 
-comment on table WF_NODE_CONFIG is '鑺傜偣閰嶇疆'
-comment on column WF_NODE_CONFIG.ID is '涓婚敭'
-comment on column WF_NODE_CONFIG.FORM_ID is '琛ㄥ崟id'
-comment on column WF_NODE_CONFIG.FORM_TYPE is '琛ㄥ崟绫诲瀷'
-comment on column WF_NODE_CONFIG.NODE_ID is '鑺傜偣id'
-comment on column WF_NODE_CONFIG.NODE_NAME is '鑺傜偣鍚嶇О'
-comment on column WF_NODE_CONFIG.DEFINITION_ID is '娴佺▼瀹氫箟id'
-comment on column WF_NODE_CONFIG.APPLY_USER_TASK is '鏄惁涓虹敵璇蜂汉鑺傜偣 锛�0鏄� 1鍚︼級'
-comment on column WF_NODE_CONFIG.TENANT_ID is '绉熸埛缂栧彿'
-comment on column WF_NODE_CONFIG.CREATE_DEPT is '鍒涘缓閮ㄩ棬'
-comment on column WF_NODE_CONFIG.CREATE_BY is '鍒涘缓鑰�'
-comment on column WF_NODE_CONFIG.CREATE_TIME is '鍒涘缓鏃堕棿'
-comment on column WF_NODE_CONFIG.UPDATE_BY is '鏇存柊鑰�'
-comment on column WF_NODE_CONFIG.UPDATE_TIME is '鏇存柊鏃堕棿'
+comment on table WF_NODE_CONFIG is '鑺傜偣閰嶇疆';
+comment on column WF_NODE_CONFIG.ID is '涓婚敭';
+comment on column WF_NODE_CONFIG.FORM_ID is '琛ㄥ崟id';
+comment on column WF_NODE_CONFIG.FORM_TYPE is '琛ㄥ崟绫诲瀷';
+comment on column WF_NODE_CONFIG.NODE_ID is '鑺傜偣id';
+comment on column WF_NODE_CONFIG.NODE_NAME is '鑺傜偣鍚嶇О';
+comment on column WF_NODE_CONFIG.DEFINITION_ID is '娴佺▼瀹氫箟id';
+comment on column WF_NODE_CONFIG.APPLY_USER_TASK is '鏄惁涓虹敵璇蜂汉鑺傜偣 锛�0鏄� 1鍚︼級';
+comment on column WF_NODE_CONFIG.TENANT_ID is '绉熸埛缂栧彿';
+comment on column WF_NODE_CONFIG.CREATE_DEPT is '鍒涘缓閮ㄩ棬';
+comment on column WF_NODE_CONFIG.CREATE_BY is '鍒涘缓鑰�';
+comment on column WF_NODE_CONFIG.CREATE_TIME is '鍒涘缓鏃堕棿';
+comment on column WF_NODE_CONFIG.UPDATE_BY is '鏇存柊鑰�';
+comment on column WF_NODE_CONFIG.UPDATE_TIME is '鏇存柊鏃堕棿';
 
 INSERT INTO sys_menu(menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_dept, create_by, create_time, update_by, update_time, remark) VALUES (11638, '璇峰亣鐢宠', 5, 1, 'leave', 'workflow/leave/index', 1, 0, 'C', '0', '0', 'demo:leave:list', '#', 103, 1, sysdate, NULL, NULL, '璇峰亣鐢宠鑿滃崟');
 INSERT INTO sys_menu(menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_dept, create_by, create_time, update_by, update_time, remark) VALUES (11639, '璇峰亣鐢宠鏌ヨ', 11638, 1, '#', '', 1, 0, 'F', '0', '0', 'demo:leave:query', '#', 103, 1, sysdate, NULL, NULL, '');

--
Gitblit v1.9.3