Browse code

- table "address" added, thanks to Norman Brandinger <norm@goes.com>

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@1182 689a6050-402a-0410-94f2-e92a70836424

Bogdan-Andrei Iancu authored on 19/10/2006 17:29:05
Showing 1 changed files
... ...
@@ -43,6 +43,7 @@
43 43
 #             corrected comments to indicate Postgres as opposed to MySQL
44 44
 #             made last_modified/created stamps consistent to now() using 
45 45
 #                  local TIMESTAMP
46
+# 2006-10-19  Added address table (bogdan)
46 47
 #
47 48
 
48 49
 
... ...
@@ -296,11 +297,13 @@ GRANT_CMD="CREATE USER $DBRWUSER WITH PASSWORD '$DEFAULT_PW';
296 296
 	GRANT ALL PRIVILEGES ON TABLE version, acc, aliases, dbaliases, grp,
297 297
 		location, missed_calls, subscriber, silo, silo_mid_seq, domain,
298 298
 		uri, usr_preferences, trusted, re_grp, pd_multidomain,
299
-		speed_dial, gw, gw_grp, gw_grp_grp_id_seq, lcr, sip_trace TO $DBRWUSER;
299
+		speed_dial, gw, gw_grp, gw_grp_grp_id_seq, lcr, address,
300
+		sip_trace TO $DBRWUSER;
300 301
 	GRANT SELECT ON TABLE version, acc, aliases, dbaliases, grp,
301 302
 		location, missed_calls, subscriber, silo, silo_mid_seq, domain,
302 303
 		uri, usr_preferences, trusted, re_grp, pd_multidomain,
303
-		speed_dial, gw, gw_grp, gw_grp_grp_id_seq, lcr, sip_trace TO $DBROUSER;"
304
+		speed_dial, gw, gw_grp, gw_grp_grp_id_seq, lcr, address,
305
+		sip_trace TO $DBROUSER;"
304 306
 TIMESTAMP="timestamp NOT NULL DEFAULT NOW()"
305 307
 DATETIME="TIMESTAMP WITHOUT TIME ZONE NOT NULL default '$DUMMY_DATE'"
306 308
 DATETIMEALIAS="TIMESTAMP WITHOUT TIME ZONE NOT NULL default '$DEFAULT_ALIASES_EXPIRES'"
... ...
@@ -346,6 +349,7 @@ INSERT INTO version VALUES ( 'gw', '3');
346 346
 INSERT INTO version VALUES ( 'gw_grp', '1');
347 347
 INSERT INTO version VALUES ( 'lcr', '2');
348 348
 INSERT INTO version VALUES ( 'sip_trace', '1');
349
+INSERT INTO version VALUES ( 'address', '2');
349 350
 
350 351
 
351 352
 /*
... ...
@@ -658,6 +662,18 @@ CREATE INDEX date_idx ON sip_trace (date);
658 658
 CREATE INDEX fromip_idx ON sip_trace (fromip);
659 659
 CREATE INDEX callid_idx ON sip_trace (callid);
660 660
 
661
+
662
+/*
663
+* Table structure for table 'address'
664
+*/
665
+CREATE TABLE address (
666
+ id $AUTO_INCREMENT,
667
+ grp smallint NOT NULL default '0',
668
+ ip_addr varchar(15) NOT NULL default '',
669
+ port smallint NOT NULL default '0'
670
+) $TABLE_TYPE; 
671
+
672
+
661 673
 /*
662 674
  * Table structure for table 'pdt'
663 675
  */