Explorar o código

* modules/lcr: gw table db schema fixes

- Added missing defunct column.
- Replaced index lcr_id_idx with index lcr_id_gw_name_idx.
Juha Heinanen %!s(int64=16) %!d(string=hai) anos
pai
achega
00634dc086
Modificáronse 1 ficheiros con 11 adicións e 1 borrados
  1. 11 1
      lib/srdb1/schema/gw.xml

+ 11 - 1
lib/srdb1/schema/gw.xml

@@ -113,9 +113,19 @@
         <description>Gateway specific flags</description>
         <description>Gateway specific flags</description>
     </column>
     </column>
 
 
+    <column>
+        <name>defunct</name>
+        <type>unsigned int</type>
+        <null/>
+        <default><null/></default>
+        <description>If not null, contains unix timestamp telling when gw becomes operational.</description>
+    </column>
+
     <index>
     <index>
-        <name>lcr_id_idx</name>
+        <name>lcr_id_gw_name_idx</name>
         <colref linkend="lcr_id"/>
         <colref linkend="lcr_id"/>
+        <colref linkend="gw_name"/>
+        <unique/>
     </index>
     </index>
 
 
 </table>
 </table>