Skip to content

Commit

Permalink
merge the service registry delta sql to v200-v210 as 2.1.0 is not rel…
Browse files Browse the repository at this point in the history
…eased (#4653)

fix #4595
  • Loading branch information
nobodyiam authored Nov 21, 2022
1 parent 0cba6f6 commit 28df335
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 31 deletions.
13 changes: 13 additions & 0 deletions scripts/sql/delta/v200-v210/apolloconfigdb-v200-v210.sql
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,16 @@ CREATE INDEX IX_PreviousReleaseId ON ReleaseHistory(PreviousReleaseId);

ALTER TABLE `Item`
ADD COLUMN `Type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '配置项类型,0: String,1: Number,2: Boolean,3: JSON' AFTER `Key`;

CREATE TABLE `ServiceRegistry` (
`Id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增Id',
`ServiceName` VARCHAR(64) NOT NULL COMMENT '服务名',
`Uri` VARCHAR(64) NOT NULL COMMENT '服务地址',
`Cluster` VARCHAR(64) NOT NULL COMMENT '集群,可以用来标识apollo.cluster或者网络分区',
`Metadata` VARCHAR(1024) NOT NULL DEFAULT '{}' COMMENT '元数据,key value结构的json object,为了方面后面扩展功能而不需要修改表结构',
`DataChange_CreatedTime` TIMESTAMP NOT NULL COMMENT '创建时间',
`DataChange_LastTime` TIMESTAMP NOT NULL COMMENT '最后修改时间',
PRIMARY KEY (`Id`),
UNIQUE INDEX `IX_UNIQUE_KEY` (`ServiceName`, `Uri`),
INDEX `IX_DataChange_LastTime` (`DataChange_LastTime`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='注册中心';
31 changes: 0 additions & 31 deletions scripts/sql/delta/v210-v220/apolloconfigdb-v210-v220.sql

This file was deleted.

0 comments on commit 28df335

Please sign in to comment.