mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-15 22:46:49 +00:00
(improvement)(semantic)Simplify datasource related code and support setting filter SQL for dict generation (#397)
* (improvement) (semantic) Simplify datasource related code and support setting filtering SQL for dict generation * (improvement) (semantic) Remove the semicolon at the end of the datasource SQL * (improvement) (common) Update sys parameter init --------- Co-authored-by: jolunoluo
This commit is contained in:
@@ -165,6 +165,7 @@ CREATE TABLE IF NOT EXISTS `s2_datasource` (
|
||||
`datasource_detail` LONGVARCHAR NOT NULL ,
|
||||
`status` int(11) DEFAULT NULL ,
|
||||
`depends` varchar(500) DEFAULT NULL ,
|
||||
`filter_sql` varchar(1000) DEFAULT NULL ,
|
||||
`created_at` TIMESTAMP NOT NULL ,
|
||||
`created_by` varchar(100) NOT NULL ,
|
||||
`updated_at` TIMESTAMP NOT NULL ,
|
||||
|
||||
@@ -144,6 +144,7 @@ CREATE TABLE `s2_datasource` (
|
||||
`datasource_detail` mediumtext NOT NULL COMMENT '数据源配置',
|
||||
`status` int(11) DEFAULT NULL ,
|
||||
`depends` text DEFAULT NULL COMMENT '上游依赖标识',
|
||||
`filter_sql` varchar(1000) DEFAULT NULL ,
|
||||
`created_at` datetime NOT NULL COMMENT '创建时间',
|
||||
`created_by` varchar(100) NOT NULL COMMENT '创建人',
|
||||
`updated_at` datetime NOT NULL COMMENT '更新时间',
|
||||
|
||||
@@ -90,4 +90,7 @@ CREATE TABLE s2_sys_parameter
|
||||
);
|
||||
|
||||
--20231114
|
||||
alter table s2_chat_config add column `llm_examples` text COMMENT 'llm examples';
|
||||
alter table s2_chat_config add column `llm_examples` text COMMENT 'llm examples';
|
||||
|
||||
--20231116
|
||||
alter table s2_datasource add column `filter_sql` varchar(1000) COMMENT 'filter_sql' after depends;
|
||||
Reference in New Issue
Block a user