From 5e4c270fe2843c89d6bfe2298261723c8a757cab Mon Sep 17 00:00:00 2001 From: snoop Date: Tue, 27 Jun 2017 16:12:40 +0900 Subject: [PATCH] fixed not meta table insert id -> remove --- src/main/resources/init.sql | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/main/resources/init.sql b/src/main/resources/init.sql index 087c53a..9baa791 100644 --- a/src/main/resources/init.sql +++ b/src/main/resources/init.sql @@ -254,23 +254,23 @@ INSERT INTO public."domain" (id,create_date,"name") VALUES ( INSERT INTO public.domain_member (id,create_date,domain_id,member_id) VALUES ( 1,'2017-06-26 11:27:43.023',1,1); -INSERT INTO public.api_key (id,api_key,create_date,domain_id) VALUES ( -1,'52abd6fd57e511e7ac52080027658d13','2017-06-26 13:02:28.347',1); +INSERT INTO public.api_key (api_key,create_date,domain_id) VALUES ( +'52abd6fd57e511e7ac52080027658d13','2017-06-26 13:02:28.347',1); -INSERT INTO public.noauth_probe (id,api_key,create_date,host_name,ip_address,mac_address,temp_probe_key,domain_id,probe_id,status) VALUES ( -1,'52abd6fd57e511e7ac52080027658d13','2017-06-26 12:43:46.877','snoop',3232235980,8796753988883,'1cf2555c57d511e79714080027658d13',1,NULL,3); +INSERT INTO public.noauth_probe (api_key,create_date,host_name,ip_address,mac_address,temp_probe_key,domain_id,probe_id,status) VALUES ( +'52abd6fd57e511e7ac52080027658d13','2017-06-26 12:43:46.877','snoop',3232235980,8796753988883,'1cf2555c57d511e79714080027658d13',1,NULL,3); -INSERT INTO public.probe (id,create_date,description,encryption_key,last_polling_date,next_polling_date,probe_key,domain_id,status) VALUES ( -1,'2017-06-26 12:44:59.813','snoop probe','9c8d41ab57de11e7a2c9080027658d13',NULL,NULL,'a1e1710557de11e78799080027658d13',1,1); +INSERT INTO public.probe (create_date,description,encryption_key,last_polling_date,next_polling_date,probe_key,domain_id,status) VALUES ( +'2017-06-26 12:44:59.813','snoop probe','9c8d41ab57de11e7a2c9080027658d13',NULL,NULL,'a1e1710557de11e78799080027658d13',1,1); -INSERT INTO public.infra_machine (id,create_date,meta,probe_id) VALUES ( -0,'2017-06-26 12:12:11.698',NULL,1); +INSERT INTO public.infra_machine (create_date,meta,probe_id) VALUES ( +'2017-06-26 12:12:11.698',NULL,1); -INSERT INTO public.infra (id,child_id,create_date,type_id) VALUES ( -1,0,'2017-06-26 12:12:11.809',1); +INSERT INTO public.infra (child_id,create_date,type_id) VALUES ( +0,'2017-06-26 12:12:11.809',1); -INSERT INTO public.target (id,create_date,infra_id,probe_id) VALUES ( -1,'2017-06-26 12:37:22.854',1,1); +INSERT INTO public.target (create_date,infra_id,probe_id) VALUES ( +'2017-06-26 12:37:22.854',1,1); INSERT INTO public.sensor (id,crawler_input_items,create_date,description,crawler_id,status,target_id) VALUES ( 1,NULL,'2017-06-26 20:19:07.009','My sensor',1,1,1);