Skip to content

Commit

Permalink
perf:蓝盾引擎模块对应的数据库支持分库 TencentBlueKing#5267
Browse files Browse the repository at this point in the history
  • Loading branch information
carlyin0801 committed Jan 11, 2022
1 parent 28cfa52 commit 3928121
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion support-files/sql/1001_ci_project_ddl_mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ CREATE TABLE IF NOT EXISTS `T_SHARDING_ROUTING_RULE` (

CREATE TABLE IF NOT EXISTS `T_DATA_SOURCE` (
`ID` varchar(32) NOT NULL DEFAULT '' COMMENT '主键ID',
`CLUSTER_NAME` varchar(64) NOT NULL DEFAULT '' COMMENT '集群名称',
`MODULE_CODE` varchar(64) NOT NULL DEFAULT '' COMMENT '模块标识',
`DATA_SOURCE_NAME` varchar(128) NOT NULL DEFAULT '' COMMENT '数据源名称',
`FULL_FLAG` bit(1) DEFAULT b'0' COMMENT '容量是否满标识 true:是,false:否',
Expand All @@ -277,7 +278,7 @@ CREATE TABLE IF NOT EXISTS `T_DATA_SOURCE` (
`UPDATE_TIME` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) COMMENT '修改时间',
`CREATE_TIME` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) COMMENT '创建时间',
PRIMARY KEY (`ID`),
UNIQUE KEY `uni_inx_tds_module_name` (`MODULE_CODE`,`DATA_SOURCE_NAME`)
UNIQUE KEY `uni_inx_tds_module_name` (`CLUSTER_NAME`, `MODULE_CODE`,`DATA_SOURCE_NAME`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='模块数据源配置';

CREATE TABLE IF NOT EXISTS `T_LEAF_ALLOC` (
Expand Down

0 comments on commit 3928121

Please sign in to comment.