Skip to content

Commit

Permalink
[Fix-3196] [datastudio] Data too long for column 'job_id'(varchar(50)…
Browse files Browse the repository at this point in the history
…) in table dinky_history (DataLinkDC#3200)

Co-authored-by: wenmo <[email protected]>
  • Loading branch information
2 people authored and gaoyan1998 committed Mar 19, 2024
1 parent 3ef825c commit 1b4d25d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion script/sql/dinky-mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,7 @@ CREATE TABLE `dinky_history` (
`cluster_id` int(11) NOT NULL DEFAULT 0 COMMENT 'cluster ID',
`cluster_configuration_id` int(11) NULL DEFAULT NULL COMMENT 'cluster configuration id',
`session` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'session',
`job_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'Job ID',
`job_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'Job ID',
`job_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'Job Name',
`job_manager_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'JJobManager Address',
`status` int(11) NOT NULL DEFAULT 0 COMMENT 'status',
Expand Down
2 changes: 1 addition & 1 deletion script/sql/dinky-pg.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2365,7 +2365,7 @@ CREATE TABLE dinky_history
cluster_id INT NOT NULL DEFAULT 0,
cluster_configuration_id INT NULL,
session VARCHAR(255) NULL,
job_id VARCHAR(50) NULL,
job_id VARCHAR(255) NULL,
job_name VARCHAR(255) NULL,
job_manager_address VARCHAR(255) NULL,
status INT NOT NULL DEFAULT 0,
Expand Down
4 changes: 4 additions & 0 deletions script/sql/upgrade/1.0.0_schema/mysql/dinky_ddl.sql
Original file line number Diff line number Diff line change
Expand Up @@ -443,5 +443,9 @@ alter table dinky_database
alter table dinky_database
drop column password;

alter table dinky_history
modify job_id varchar(255) null comment 'Job ID';



SET FOREIGN_KEY_CHECKS = 1;

0 comments on commit 1b4d25d

Please sign in to comment.