This is an automated email from the ASF dual-hosted git repository.
wenjun 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 58e60fe27f [Fix-17979][DAO] Fix INT/BIGINT mismatch of
workflow_definition_code in t_ds_serial_command. (#17988)
58e60fe27f is described below
commit 58e60fe27f6909ae7115ffaada588b5765f1bde0
Author: Divyansh Pratap Singh <[email protected]>
AuthorDate: Fri Feb 27 20:00:06 2026 +0530
[Fix-17979][DAO] Fix INT/BIGINT mismatch of workflow_definition_code in
t_ds_serial_command. (#17988)
---
dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_h2.sql | 2 +-
dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_mysql.sql | 2 +-
.../resources/sql/upgrade/3.4.1_schema/mysql/dolphinscheduler_ddl.sql | 3 +++
3 files changed, 5 insertions(+), 2 deletions(-)
diff --git
a/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_h2.sql
b/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_h2.sql
index b86a1707e8..996fce0732 100644
--- a/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_h2.sql
+++ b/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_h2.sql
@@ -348,7 +348,7 @@ CREATE TABLE t_ds_command
DROP TABLE IF EXISTS `t_ds_serial_command`;
CREATE TABLE `t_ds_serial_command` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'primary key',
- `workflow_definition_code` int(11) NOT NULL COMMENT 'workflow definition
code',
+ `workflow_definition_code` bigint(20) NOT NULL COMMENT 'workflow definition
code',
`workflow_definition_version` int(11) NOT NULL COMMENT 'workflow definition
code',
`workflow_instance_id` bigint(20) NOT NULL COMMENT 'workflow instance id',
`state` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'state of the serial queue: 0
waiting, 1 fired',
diff --git
a/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_mysql.sql
b/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_mysql.sql
index ea80068e49..7067cd7429 100644
--- a/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_mysql.sql
+++ b/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_mysql.sql
@@ -356,7 +356,7 @@ CREATE TABLE `t_ds_command` (
DROP TABLE IF EXISTS `t_ds_serial_command`;
CREATE TABLE `t_ds_serial_command` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'primary key',
- `workflow_definition_code` int(11) NOT NULL COMMENT 'workflow definition
code',
+ `workflow_definition_code` bigint(20) NOT NULL COMMENT 'workflow definition
code',
`workflow_definition_version` int(11) NOT NULL COMMENT 'workflow definition
version',
`workflow_instance_id` bigint(20) NOT NULL COMMENT 'workflow instance id',
`state` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'state of the serial queue: 0
waiting, 1 fired',
diff --git
a/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.4.1_schema/mysql/dolphinscheduler_ddl.sql
b/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.4.1_schema/mysql/dolphinscheduler_ddl.sql
index 4a14f326b9..30f6f2be69 100644
---
a/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.4.1_schema/mysql/dolphinscheduler_ddl.sql
+++
b/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.4.1_schema/mysql/dolphinscheduler_ddl.sql
@@ -14,3 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
+ALTER TABLE `t_ds_serial_command`
+MODIFY COLUMN `workflow_definition_code` BIGINT(20) NOT NULL COMMENT 'workflow
definition code';
\ No newline at end of file