This is an automated email from the ASF dual-hosted git repository.

kerwin pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new c02e08bb3d [BUG-12396][Schedule] Fixed that the workflow definition 
scheduling that has been online after the version upgrade does not execute 
(#12397)
c02e08bb3d is described below

commit c02e08bb3d91d7c7980eb9e90d22c27dd186e8f7
Author: Kerwin <[email protected]>
AuthorDate: Mon Oct 17 19:45:39 2022 +0800

    [BUG-12396][Schedule] Fixed that the workflow definition scheduling that 
has been online after the version upgrade does not execute (#12397)
    
    * Fixed that the workflow definition scheduling that has been online after 
the version upgrade does not execute.
---
 .../mysql/dolphinscheduler_ddl.sql}                         | 13 -------------
 .../mysql}/dolphinscheduler_dml.sql                         | 13 +------------
 .../postgresql/dolphinscheduler_ddl.sql}                    | 13 -------------
 .../postgresql/dolphinscheduler_dml.sql                     | 13 +------------
 .../3.2.0_schema/postgresql/dolphinscheduler_dml.sql        | 13 -------------
 5 files changed, 2 insertions(+), 63 deletions(-)

diff --git 
a/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.2.0_schema/postgresql/dolphinscheduler_dml.sql
 
b/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.1.1_schema/mysql/dolphinscheduler_ddl.sql
similarity index 81%
copy from 
dolphinscheduler-dao/src/main/resources/sql/upgrade/3.2.0_schema/postgresql/dolphinscheduler_dml.sql
copy to 
dolphinscheduler-dao/src/main/resources/sql/upgrade/3.1.1_schema/mysql/dolphinscheduler_ddl.sql
index 551a3206e3..4a14f326b9 100644
--- 
a/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.2.0_schema/postgresql/dolphinscheduler_dml.sql
+++ 
b/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.1.1_schema/mysql/dolphinscheduler_ddl.sql
@@ -14,16 +14,3 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
 */
-
-delimiter d//
-
-return 'Success!';
-exception when others then
-               ---Raise EXCEPTION '(%)',SQLERRM;
-        return SQLERRM;
-END;
-$BODY$;
-
-select dolphin_insert_dq_initial_data();
-
-d//
diff --git 
a/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.2.0_schema/postgresql/dolphinscheduler_dml.sql
 
b/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.1.1_schema/mysql/dolphinscheduler_dml.sql
similarity index 80%
copy from 
dolphinscheduler-dao/src/main/resources/sql/upgrade/3.2.0_schema/postgresql/dolphinscheduler_dml.sql
copy to 
dolphinscheduler-dao/src/main/resources/sql/upgrade/3.1.1_schema/mysql/dolphinscheduler_dml.sql
index 551a3206e3..825be2d505 100644
--- 
a/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.2.0_schema/postgresql/dolphinscheduler_dml.sql
+++ 
b/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.1.1_schema/mysql/dolphinscheduler_dml.sql
@@ -15,15 +15,4 @@
  * limitations under the License.
 */
 
-delimiter d//
-
-return 'Success!';
-exception when others then
-               ---Raise EXCEPTION '(%)',SQLERRM;
-        return SQLERRM;
-END;
-$BODY$;
-
-select dolphin_insert_dq_initial_data();
-
-d//
+UPDATE qrtz_job_details SET job_class_name = 
'org.apache.dolphinscheduler.scheduler.quartz.ProcessScheduleTask' WHERE 
job_class_name = 
'org.apache.dolphinscheduler.service.quartz.ProcessScheduleJob';
diff --git 
a/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.2.0_schema/postgresql/dolphinscheduler_dml.sql
 
b/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.1.1_schema/postgresql/dolphinscheduler_ddl.sql
similarity index 81%
copy from 
dolphinscheduler-dao/src/main/resources/sql/upgrade/3.2.0_schema/postgresql/dolphinscheduler_dml.sql
copy to 
dolphinscheduler-dao/src/main/resources/sql/upgrade/3.1.1_schema/postgresql/dolphinscheduler_ddl.sql
index 551a3206e3..4a14f326b9 100644
--- 
a/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.2.0_schema/postgresql/dolphinscheduler_dml.sql
+++ 
b/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.1.1_schema/postgresql/dolphinscheduler_ddl.sql
@@ -14,16 +14,3 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
 */
-
-delimiter d//
-
-return 'Success!';
-exception when others then
-               ---Raise EXCEPTION '(%)',SQLERRM;
-        return SQLERRM;
-END;
-$BODY$;
-
-select dolphin_insert_dq_initial_data();
-
-d//
diff --git 
a/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.2.0_schema/postgresql/dolphinscheduler_dml.sql
 
b/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.1.1_schema/postgresql/dolphinscheduler_dml.sql
similarity index 80%
copy from 
dolphinscheduler-dao/src/main/resources/sql/upgrade/3.2.0_schema/postgresql/dolphinscheduler_dml.sql
copy to 
dolphinscheduler-dao/src/main/resources/sql/upgrade/3.1.1_schema/postgresql/dolphinscheduler_dml.sql
index 551a3206e3..825be2d505 100644
--- 
a/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.2.0_schema/postgresql/dolphinscheduler_dml.sql
+++ 
b/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.1.1_schema/postgresql/dolphinscheduler_dml.sql
@@ -15,15 +15,4 @@
  * limitations under the License.
 */
 
-delimiter d//
-
-return 'Success!';
-exception when others then
-               ---Raise EXCEPTION '(%)',SQLERRM;
-        return SQLERRM;
-END;
-$BODY$;
-
-select dolphin_insert_dq_initial_data();
-
-d//
+UPDATE qrtz_job_details SET job_class_name = 
'org.apache.dolphinscheduler.scheduler.quartz.ProcessScheduleTask' WHERE 
job_class_name = 
'org.apache.dolphinscheduler.service.quartz.ProcessScheduleJob';
diff --git 
a/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.2.0_schema/postgresql/dolphinscheduler_dml.sql
 
b/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.2.0_schema/postgresql/dolphinscheduler_dml.sql
index 551a3206e3..4a14f326b9 100644
--- 
a/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.2.0_schema/postgresql/dolphinscheduler_dml.sql
+++ 
b/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.2.0_schema/postgresql/dolphinscheduler_dml.sql
@@ -14,16 +14,3 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
 */
-
-delimiter d//
-
-return 'Success!';
-exception when others then
-               ---Raise EXCEPTION '(%)',SQLERRM;
-        return SQLERRM;
-END;
-$BODY$;
-
-select dolphin_insert_dq_initial_data();
-
-d//

Reply via email to