增加远程db config配置

This commit is contained in:
mcy
2018-12-29 20:21:03 +08:00
parent 7ea1468a8d
commit 7c79714528
5 changed files with 430 additions and 109 deletions

10
deployer/manager_ddl.sql Normal file
View File

@@ -0,0 +1,10 @@
CREATE SCHEMA `canal_manager` DEFAULT CHARACTER SET utf8mb4 ;
CREATE TABLE `canal_config` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(45) NOT NULL,
`content` text NOT NULL,
`modified_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `name_UNIQUE` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4