From 049550dc1cfa81c48e30ee510122633fa86f306e Mon Sep 17 00:00:00 2001 From: dongxiaoyan Date: Fri, 25 Jan 2019 06:27:40 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=BB=98=E8=AE=A4=E5=8A=A8?= =?UTF-8?q?=E6=80=81ip=E6=B1=A0=EF=BC=8C=E5=B9=B6=E4=BF=AE=E6=94=B9cfgid?= =?UTF-8?q?=E4=B8=BA0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit e5e63af73857f7eab3613c7f8e704500303c4c2c) --- src/main/resources/sql/truncate_tables.sql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/resources/sql/truncate_tables.sql b/src/main/resources/sql/truncate_tables.sql index 3e7935cdc..52c1a954d 100644 --- a/src/main/resources/sql/truncate_tables.sql +++ b/src/main/resources/sql/truncate_tables.sql @@ -70,4 +70,7 @@ DELETE FROM service_dict_info where item_type='5'; -- 由于DNS策略组的组号也需要大于100,所以策略分组的主键自增从101开始 ALTER TABLE policy_group_info auto_increment = 101; -- 清空asn号分组表 -DELETE FROM asn_group_info; \ No newline at end of file +DELETE FROM asn_group_info; +-- 默认动态IP地址池 +INSERT INTO `ip_reuse_addr_pool` (`cfg_id`, `addr_pool_name`, `ip_total`, `action`, `is_valid`, `is_audit`, `cfg_region_code`, `cfg_type`, `function_id`, `service_id`, `compile_id`, `is_area_effective`, `area_effective_ids`, `request_id`, `classify`, `attribute`, `lable`, `creator_id`, `create_time`, `editor_id`, `edit_time`, `auditor_id`, `audit_time`, `description`, `cancel_request_id`, `user_region1`, `user_region2`, `user_region3`, `user_region4`, `user_region5`) VALUES ('0', 'dynamic_pool', '1', '96', '1', '1', '1', 'IR_STATIC_NOMINEE_IP', '633', '834', '0', '0', '', '0', '0', '0', '0', '0', '0000-00-00 00:00:00', NULL, '0000-00-00 00:00:00', NULL, '0000-00-00 00:00:00', '', NULL, '', '', '', '', ''); +UPDATE ip_reuse_addr_pool set cfg_id=0 where add_pool_nam= 'dynamic_pool';