Kaynağa Gözat

- missing column prefix in gw table added
- schema re-generated

Jan Janak 17 yıl önce
ebeveyn
işleme
629a255e1e

+ 31 - 25
db/schema/gw.xml

@@ -8,51 +8,57 @@
 ]>
 
 <table>
-    <name>gw</name>
-    <version>3</version>
-
-    <column id="gw.gw_name">
+  <name>gw</name>
+  <version>3</version>
+  
+  <column id="gw.gw_name">
 	<name>gw_name</name>
 	<type>string</type>
 	<size>128</size>
-    </column>
-
-    <column>
+  </column>
+  
+  <column>
 	<name>ip_addr</name>
 	<type>unsigned int</type>
-    </column>
-
-    <column>
+  </column>
+  
+  <column>
 	<name>port</name>
 	<type>unsigned short</type>
 	<null/>
-    </column>
-
-    <column>
+  </column>
+  
+  <column>
 	<name>uri_scheme</name>
 	<type>unsigned char</type>
 	<null/>
-    </column>
-
-    <column>
+  </column>
+  
+  <column>
 	<name>transport</name>
 	<type>unsigned short</type>
 	<null/>
-    </column>
+  </column>
 
-    <column id="gw.grp_id">
+  <column id="gw.prefix">
+	<name>prefix</name>
+	<type>string</type>
+	<size>16</size>
+  </column>
+
+  <column id="gw.grp_id">
 	<name>grp_id</name>
 	<type>int</type>
-    </column>
-
-    <index>
+  </column>
+  
+  <index>
 	<name>gw_idx1</name>
 	<colref linkend="gw.gw_name"/>
 	<unique/>
-    </index>
-
-    <index>
+  </index>
+  
+  <index>
 	<name>gw_idx2</name>
 	<colref linkend="gw.grp_id"/>
-    </index>
+  </index>
 </table>

+ 1 - 1
scripts/dbtext/ser_db/gw

@@ -1 +1 @@
-gw_name(str) ip_addr(int) port(int,null) uri_scheme(int,null) transport(int,null) grp_id(int) 
+gw_name(str) ip_addr(int) port(int,null) uri_scheme(int,null) transport(int,null) prefix(str) grp_id(int) 

+ 2 - 0
scripts/mysql/my_create.sql

@@ -230,6 +230,7 @@ CREATE TABLE gw (
     port SMALLINT UNSIGNED,
     uri_scheme TINYINT UNSIGNED,
     transport SMALLINT UNSIGNED,
+    prefix VARCHAR(16) NOT NULL,
     grp_id INT NOT NULL,
     UNIQUE KEY gw_idx1 (gw_name),
     KEY gw_idx2 (grp_id)
@@ -463,3 +464,4 @@ CREATE TABLE customers (
     UNIQUE KEY cu_idx (cid)
 );
 
+ 

+ 1 - 0
scripts/oracle/or_create.sql

@@ -230,6 +230,7 @@ CREATE TABLE gw (
     port SMALLINT UNSIGNED,
     uri_scheme TINYINT UNSIGNED,
     transport SMALLINT UNSIGNED,
+    prefix VARCHAR(16) NOT NULL,
     grp_id INT NOT NULL,
     UNIQUE KEY gw_idx1 (gw_name),
     KEY gw_idx2 (grp_id)

+ 1 - 0
scripts/postgres/pg_create.sql

@@ -239,6 +239,7 @@ CREATE TABLE gw (
     port SMALLINT,
     uri_scheme SMALLINT,
     transport SMALLINT,
+    prefix VARCHAR(16) NOT NULL,
     grp_id INTEGER NOT NULL,
     CONSTRAINT gw_idx1 UNIQUE (gw_name)
 );