diff --git a/backend/src/main/java/io/dataease/service/dataset/ExtractDataService.java b/backend/src/main/java/io/dataease/service/dataset/ExtractDataService.java index 78620eba60..52b9cf2a2f 100644 --- a/backend/src/main/java/io/dataease/service/dataset/ExtractDataService.java +++ b/backend/src/main/java/io/dataease/service/dataset/ExtractDataService.java @@ -115,7 +115,11 @@ public class ExtractDataService { Column_Fields = Column_Fields + datasetTableField.getDataeaseName() + "` "; switch (datasetTableField.getDeType()){ case 0: - Column_Fields = Column_Fields + "varchar(lenth)".replace("lenth", String.valueOf(datasetTableField.getSize())) + ",`"; + if(datasetTableField.getSize() > 65533){ + Column_Fields = Column_Fields + "String" + ",`"; + }else { + Column_Fields = Column_Fields + "varchar(lenth)".replace("lenth", String.valueOf(datasetTableField.getSize())) + ",`"; + } break; case 1: Column_Fields = Column_Fields + "varchar(lenth)".replace("lenth", String.valueOf(datasetTableField.getSize())) + ",`"; diff --git a/backend/src/main/resources/db/migration/V16__dataset_table_field.sql b/backend/src/main/resources/db/migration/V16__dataset_table_field.sql index 0db94c6dd4..3010a063a9 100644 --- a/backend/src/main/resources/db/migration/V16__dataset_table_field.sql +++ b/backend/src/main/resources/db/migration/V16__dataset_table_field.sql @@ -1,2 +1,3 @@ ALTER TABLE `dataset_table_field` ADD COLUMN `dataease_name` varchar(255) NOT NULL COMMENT '字段名' AFTER `name`; -ALTER TABLE dataset_table_task_log CHANGE COLUMN `task_id` `task_id` VARCHAR(50) NULL COMMENT '任务ID' ; \ No newline at end of file +ALTER TABLE dataset_table_task_log CHANGE COLUMN `task_id` `task_id` VARCHAR(50) NULL COMMENT '任务ID' ; +ALTER TABLE `dataset_table_task_log` CHANGE COLUMN `info` `info` LONGTEXT NULL DEFAULT NULL COMMENT '错误信息' ; diff --git a/frontend/pom.xml b/frontend/pom.xml index c5583f25ef..a157912bb4 100644 --- a/frontend/pom.xml +++ b/frontend/pom.xml @@ -44,7 +44,7 @@ - install + install --force