SbloodyS commented on code in PR #16544:
URL: 
https://github.com/apache/dolphinscheduler/pull/16544#discussion_r1742880885


##########
dolphinscheduler-dao/src/main/resources/sql/upgrade/3.3.0_schema/mysql/dolphinscheduler_ddl.sql:
##########
@@ -126,3 +126,49 @@ CALL drop_column_t_ds_alert_plugin_instance;
 DROP PROCEDURE drop_column_t_ds_alert_plugin_instance;
 
 DROP TABLE IF EXISTS `t_ds_trigger_relation`;
+
+-- Rename tables and fields from process to workflow
+ALTER TABLE t_ds_alert change process_definition_code workflow_definition_code 
bigint(20);
+ALTER TABLE t_ds_alert change process_instance_id workflow_instance_id int(11);
+
+ALTER TABLE t_ds_command change process_definition_code 
workflow_definition_code bigint(20);
+ALTER TABLE t_ds_command change process_instance_priority 
workflow_instance_priority int(11);
+ALTER TABLE t_ds_command change process_instance_id workflow_instance_id 
int(11);
+ALTER TABLE t_ds_command change process_definition_version 
workflow_definition_version int(11);
+
+ALTER TABLE t_ds_error_command change process_definition_code 
workflow_definition_code bigint(20);
+ALTER TABLE t_ds_error_command change process_instance_priority 
workflow_instance_priority int(11);
+ALTER TABLE t_ds_error_command change process_instance_id workflow_instance_id 
int(11);
+ALTER TABLE t_ds_error_command change process_definition_version 
workflow_definition_version int(11);
+
+ALTER TABLE t_ds_process_task_relation change process_definition_version 
workflow_definition_version int(11);
+ALTER TABLE t_ds_process_task_relation change process_definition_code 
workflow_definition_code bigint(20);
+
+ALTER TABLE t_ds_process_task_relation_log change process_definition_version 
workflow_definition_version int(11);
+ALTER TABLE t_ds_process_task_relation_log change process_definition_code 
workflow_definition_code bigint(20);
+
+ALTER TABLE t_ds_process_instance change process_definition_code 
workflow_definition_code bigint(20);
+ALTER TABLE t_ds_process_instance change process_definition_version 
workflow_definition_version int(11);
+ALTER TABLE t_ds_process_instance change is_sub_process is_sub_workflow 
int(11);
+ALTER TABLE t_ds_process_instance change process_instance_priority 
workflow_instance_priority int(11);

Review Comment:
   Done.



##########
dolphinscheduler-e2e/dolphinscheduler-e2e-case/src/test/java/org/apache/dolphinscheduler/e2e/cases/WorkflowE2ETest.java:
##########
@@ -143,9 +145,9 @@ void testCreateSubWorkflow() {
                         .goToTab(WorkflowDefinitionTab.class);
 
         workflowDefinitionPage
-                .createSubProcessWorkflow()
+                .createSubWorkflowWorkflow()

Review Comment:
   Fixed.



##########
dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/controller/ClusterControllerTest.java:
##########
@@ -84,7 +84,7 @@ public void testCreateCluster() throws Exception {
         clusterCode = (String) result.getData();
     }
 
-    @Test
+    // @Test

Review Comment:
   Fixed.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to