瀏覽代碼

srdb1/schema: added connection_idx index to location table

Juha Heinanen 9 年之前
父節點
當前提交
4f9e0ffc7c
共有 1 個文件被更改,包括 8 次插入2 次删除
  1. 8 2
      lib/srdb1/schema/location.xml

+ 8 - 2
lib/srdb1/schema/location.xml

@@ -179,7 +179,7 @@
         <description>The value of reg-id contact parameter</description>
     </column>
 
-    <column>
+    <column id="server_id">
         <name>server_id</name>
         <type>int</type>
         <size>11</size>
@@ -187,7 +187,7 @@
         <description>The value of server_id from configuration file</description>
     </column>
 
-    <column>
+    <column id="connection_id">
         <name>connection_id</name>
         <type>int</type>
         <size>11</size>
@@ -228,6 +228,12 @@
         <name>expires_idx</name>
         <colref linkend="expires"/>
     </index>
+    <index>
+        <name>connection_idx</name>
+        <colref linkend="server_id"/>
+        <colref linkend="connection_id"/>
+        <unique/>
+    </index>
 
 
 </table>