apolloconfigdb-v151-v160.sql 1.0 KB

123456789101112131415161718
  1. # delta schema to upgrade apollo config db from v1.5.1 to v1.6.0
  2. Use ApolloConfigDB;
  3. CREATE TABLE `AccessKey` (
  4. `Id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增主键',
  5. `AppId` varchar(500) NOT NULL DEFAULT 'default' COMMENT 'AppID',
  6. `Secret` varchar(128) NOT NULL DEFAULT '' COMMENT 'Secret',
  7. `IsEnabled` bit(1) NOT NULL DEFAULT b'0' COMMENT '1: enabled, 0: disabled',
  8. `IsDeleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '1: deleted, 0: normal',
  9. `DataChange_CreatedBy` varchar(32) NOT NULL DEFAULT 'default' COMMENT '创建人邮箱前缀',
  10. `DataChange_CreatedTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  11. `DataChange_LastModifiedBy` varchar(32) NOT NULL DEFAULT '' COMMENT '最后修改人邮箱前缀',
  12. `DataChange_LastTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后修改时间',
  13. PRIMARY KEY (`Id`),
  14. KEY `AppId` (`AppId`(191)),
  15. KEY `DataChange_LastTime` (`DataChange_LastTime`)
  16. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='访问密钥';