Skip to content

Commit

Permalink
修改线程池实例配置表名.
Browse files Browse the repository at this point in the history
  • Loading branch information
magestacks committed Dec 5, 2021
1 parent cc7ddd8 commit a986a65
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* @date 2021/12/5 19:19
*/
@Data
@TableName("config_instance")
@TableName("inst_config")
public class ConfigInstanceInfo {

/**
Expand Down
7 changes: 4 additions & 3 deletions hippo4j-server/src/main/resources/hippo_manager.sql
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ CREATE TABLE `config` (

/******************************************/
/* 数据库全名 = hippo_manager */
/* 表名称 = config_instance */
/* 表名称 = inst_config */
/******************************************/
DROP TABLE IF EXISTS `config_instance`;
CREATE TABLE `config_instance` (
DROP TABLE IF EXISTS `inst_config`;
CREATE TABLE `inst_config` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`tenant_id` varchar(128) DEFAULT NULL COMMENT '租户ID',
`item_id` varchar(256) DEFAULT NULL COMMENT '项目ID',
Expand All @@ -85,6 +85,7 @@ CREATE TABLE `config_instance` (
`content` longtext COMMENT '线程池内容',
`md5` varchar(32) NOT NULL COMMENT 'MD5',
`gmt_create` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`gmt_modified` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`),
KEY `idx_config_instance` (`tenant_id`,`item_id`,`tp_id`,`instance_id`) USING BTREE,
Expand Down

0 comments on commit a986a65

Please sign in to comment.