소스 검색

- new table -- trusted

Jan Janak 22 년 전
부모
커밋
1d4fd125c1
1개의 변경된 파일11개의 추가작업 그리고 3개의 파일을 삭제
  1. 11 3
      scripts/ser_mysql.sh

+ 11 - 3
scripts/ser_mysql.sh

@@ -237,7 +237,7 @@ INSERT INTO version VALUES ( 'domain', '1');
 INSERT INTO version VALUES ( 'uri', '1');
 INSERT INTO version VALUES ( 'uri', '1');
 INSERT INTO version VALUES ( 'server_monitoring', '1');
 INSERT INTO version VALUES ( 'server_monitoring', '1');
 INSERT INTO version VALUES ( 'server_monitoring_agg', '1');
 INSERT INTO version VALUES ( 'server_monitoring_agg', '1');
-
+INSERT INTO version VALUES ( 'trusted', '1');
 
 
 #
 #
 # Table structure for table 'acc' -- accounted calls
 # Table structure for table 'acc' -- accounted calls
@@ -559,10 +559,18 @@ CREATE TABLE preferences (
 	  
 	  
 
 
 #
 #
-# Table structure for table 'server_monitoring_agg'
-#
+# Table structure for table trusted
+CREATE TABLE trusted (
+  src_ip varchar(39) NOT NULL,
+  proto varchar(4) NOT NULL,
+  from_pattern varchar(64) NOT NULL,
+  PRIMARY KEY (src_ip, proto, from_pattern)
+) $TABLE_TYPE;
 
 
 
 
+#
+# Table structure for table 'server_monitoring_agg'
+#
 DROP TABLE IF EXISTS server_monitoring_agg;
 DROP TABLE IF EXISTS server_monitoring_agg;
 CREATE TABLE server_monitoring_agg (
 CREATE TABLE server_monitoring_agg (
   param varchar(32) NOT NULL default '',
   param varchar(32) NOT NULL default '',