(fix)(launcher)Change join_condition to type text to avoid "value too long for column".

This commit is contained in:
jerryjzhang
2025-03-09 09:18:29 +08:00
parent a76b5a4300
commit 91243005bc
4 changed files with 7 additions and 4 deletions

View File

@@ -410,4 +410,7 @@ ALTER TABLE s2_query_stat_info RENAME COLUMN `sql` TO `query_sql`;
--20250224 --20250224
ALTER TABLE s2_agent add column `admin_org` varchar(3000) DEFAULT NULL COMMENT '管理员组织'; ALTER TABLE s2_agent add column `admin_org` varchar(3000) DEFAULT NULL COMMENT '管理员组织';
ALTER TABLE s2_agent add column `view_org` varchar(3000) DEFAULT NULL COMMENT '可用组织'; ALTER TABLE s2_agent add column `view_org` varchar(3000) DEFAULT NULL COMMENT '可用组织';
ALTER TABLE s2_agent add column `is_open` tinyint DEFAULT NULL COMMENT '是否公开'; ALTER TABLE s2_agent add column `is_open` tinyint DEFAULT NULL COMMENT '是否公开';
--20250309
ALTER TABLE s2_model_rela alter column join_condition type text;

View File

@@ -268,7 +268,7 @@ CREATE TABLE IF NOT EXISTS s2_model_rela
from_model_id BIGINT, from_model_id BIGINT,
to_model_id BIGINT, to_model_id BIGINT,
join_type VARCHAR(255), join_type VARCHAR(255),
join_condition VARCHAR(255), join_condition TEXT,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
); );

View File

@@ -404,7 +404,7 @@ CREATE TABLE IF NOT EXISTS s2_model_rela
from_model_id bigint, from_model_id bigint,
to_model_id bigint, to_model_id bigint,
join_type VARCHAR(255), join_type VARCHAR(255),
join_condition VARCHAR(255) join_condition text
)ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; )ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE IF NOT EXISTS `s2_collect` ( CREATE TABLE IF NOT EXISTS `s2_collect` (

View File

@@ -465,7 +465,7 @@ CREATE TABLE IF NOT EXISTS s2_model_rela (
from_model_id bigint, from_model_id bigint,
to_model_id bigint, to_model_id bigint,
join_type VARCHAR(255), join_type VARCHAR(255),
join_condition VARCHAR(255) join_condition text
); );
CREATE TABLE IF NOT EXISTS s2_collect ( CREATE TABLE IF NOT EXISTS s2_collect (