Browse Source

* core

* Updated gw and lcr table schemas.
Juha Heinanen 16 years ago
parent
commit
adc19f419c
2 changed files with 18 additions and 28 deletions
  1. 9 16
      lib/srdb1/schema/gw.xml
  2. 9 12
      lib/srdb1/schema/lcr.xml

+ 9 - 16
lib/srdb1/schema/gw.xml

@@ -10,7 +10,7 @@
 
 <table id="gw" xmlns:db="http://docbook.org/ns/docbook">
     <name>gw</name>
-    <version>9</version>
+    <version>10</version>
     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
     <description>
         <db:para>This table contains Least Cost Routing Gateway definitions for the LCR module.
@@ -27,6 +27,12 @@
         <type db="dbtext">int,auto</type>
     </column>
 
+    <column id="lcr_id">
+        <name>lcr_id</name>
+        <type>unsigned short</type>
+        <description>LCR instance identifier</description>
+    </column>
+
     <column id="gw_name">
         <name>gw_name</name>
         <type>string</type>
@@ -100,13 +106,6 @@
         <description>Weight of gateway within gw_grp.  Valid values are 1-254.</description>
     </column>
 
-    <column>
-        <name>ping</name>
-        <type>unsigned char</type>
-        <default>0</default>
-        <description>Is gateway eligible for aliveness check (0 = no, 1 = yes)</description>
-    </column>
-
     <column>
         <name>flags</name>
         <type>unsigned int</type>
@@ -115,14 +114,8 @@
     </column>
 
     <index>
-        <name>gw_name_idx</name>
-        <colref linkend="gw_name"/>
-        <unique/>
-    </index>
-
-    <index>
-        <name>grp_id_idx</name>
-        <colref linkend="grp_id"/>
+        <name>lcr_id_idx</name>
+        <colref linkend="lcr_id"/>
     </index>
 
 </table>

+ 9 - 12
lib/srdb1/schema/lcr.xml

@@ -9,7 +9,7 @@
 
 <table id="lcr" xmlns:db="http://docbook.org/ns/docbook">
     <name>lcr</name>
-    <version>2</version>
+    <version>3</version>
     <type db="mysql">&MYSQL_TABLE_TYPE;</type>
     <description>
         <db:para>This table is used by the lcr (Least Cost Routing) rules.
@@ -26,6 +26,12 @@
         <type db="dbtext">int,auto</type>
     </column>
 
+    <column id="lcr_id">
+        <name>lcr_id</name>
+        <type>unsigned short</type>
+        <description>LCR instance identifier</description>
+    </column>
+
     <column id="prefix">
         <name>prefix</name>
         <type>string</type>
@@ -58,17 +64,8 @@
     </column>
 
     <index>
-        <name>prefix_idx</name>
-        <colref linkend="prefix"/>
+        <name>lcr_id_idx</name>
+        <colref linkend="lcr_id"/>
     </index>
 
-    <index>
-        <name>from_uri_idx</name>
-        <colref linkend="from_uri"/>
-    </index>
-
-    <index>
-        <name>grp_id_idx</name>
-        <colref linkend="grp_id"/>
-    </index>
 </table>