Pārlūkot izejas kodu

Use more consistent names for database indexes

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@2948 689a6050-402a-0410-94f2-e92a70836424
Dan Pascu 18 gadi atpakaļ
vecāks
revīzija
6b259a8498

+ 1 - 1
lib/srdb1/schema/acc.xml

@@ -82,7 +82,7 @@
     </column>
     </column>
 
 
     <index>
     <index>
-        <name>acc_callid_idx</name>
+        <name>callid_idx</name>
         <colref linkend="callid"/>
         <colref linkend="callid"/>
     </index>
     </index>
 </table>
 </table>

+ 1 - 1
lib/srdb1/schema/aliases.xml

@@ -150,7 +150,7 @@
     </column>
     </column>
 
 
     <index>
     <index>
-        <name>udc_als</name>
+        <name>alias_idx</name>
         <colref linkend="username"/>
         <colref linkend="username"/>
         <colref linkend="domain"/>
         <colref linkend="domain"/>
         <colref linkend="contact"/>
         <colref linkend="contact"/>

+ 1 - 1
lib/srdb1/schema/cpl.xml

@@ -52,7 +52,7 @@
     </column>
     </column>
 
 
     <index>
     <index>
-        <name>ud_cpl</name>
+        <name>account_idx</name>
         <unique/>
         <unique/>
         <colref linkend="username"/>
         <colref linkend="username"/>
         <colref linkend="domain"/>
         <colref linkend="domain"/>

+ 2 - 2
lib/srdb1/schema/dbaliases.xml

@@ -60,14 +60,14 @@
     </column>
     </column>
 
 
     <index>
     <index>
-        <name>alias_key</name>
+        <name>alias_idx</name>
         <colref linkend="alias_username"/>
         <colref linkend="alias_username"/>
         <colref linkend="alias_domain"/>
         <colref linkend="alias_domain"/>
         <unique/>
         <unique/>
     </index>
     </index>
 
 
     <index>
     <index>
-        <name>alias_user</name>
+        <name>target_idx</name>
         <colref linkend="username"/>
         <colref linkend="username"/>
         <colref linkend="domain"/>
         <colref linkend="domain"/>
     </index>
     </index>

+ 1 - 1
lib/srdb1/schema/dialog.xml

@@ -165,7 +165,7 @@
 	</column>
 	</column>
 
 
 	<index>
 	<index>
-		<name>ei_dialog</name>
+		<name>hash_idx</name>
 		<colref linkend="hash_entry"/>
 		<colref linkend="hash_entry"/>
 		<colref linkend="hash_id"/>
 		<colref linkend="hash_id"/>
 	</index>
 	</index>

+ 3 - 3
lib/srdb1/schema/domain.xml

@@ -27,7 +27,7 @@
         <description>unique ID</description>
         <description>unique ID</description>
     </column>
     </column>
 
 
-    <column id="dom">
+    <column id="domain">
         <name>domain</name>
         <name>domain</name>
         <type>string</type>
         <type>string</type>
         <size>&domain_len;</size>
         <size>&domain_len;</size>
@@ -43,8 +43,8 @@
     </column>
     </column>
 
 
     <index>
     <index>
-        <name>d_domain</name>
-        <colref linkend="dom"/>
+        <name>domain_idx</name>
+        <colref linkend="domain"/>
         <unique/>
         <unique/>
     </index>
     </index>
 </table>
 </table>

+ 2 - 1
lib/srdb1/schema/grp.xml

@@ -59,10 +59,11 @@
     </column>
     </column>
 
 
     <index>
     <index>
-        <name>udg_grp</name>
+        <name>account_group_idx</name>
         <colref linkend="username"/>
         <colref linkend="username"/>
         <colref linkend="domain"/>
         <colref linkend="domain"/>
         <colref linkend="group"/>
         <colref linkend="group"/>
         <unique/>
         <unique/>
     </index>
     </index>
+
 </table>
 </table>

+ 2 - 2
lib/srdb1/schema/gw.xml

@@ -93,13 +93,13 @@
     </column>
     </column>
 
 
     <index>
     <index>
-        <name>name_gw</name>
+        <name>gw_name_idx</name>
         <colref linkend="gw_name"/>
         <colref linkend="gw_name"/>
         <unique/>
         <unique/>
     </index>
     </index>
 
 
     <index>
     <index>
-        <name>gid_gw</name>
+        <name>grp_id_idx</name>
         <colref linkend="grp_id"/>
         <colref linkend="grp_id"/>
     </index>
     </index>
 
 

+ 1 - 1
lib/srdb1/schema/imc_members.xml

@@ -55,7 +55,7 @@
     </column>
     </column>
 
 
     <index>
     <index>
-        <name>ndr_imc</name>
+        <name>account_room_idx</name>
         <colref linkend="username"/>
         <colref linkend="username"/>
         <colref linkend="domain"/>
         <colref linkend="domain"/>
         <colref linkend="room"/>
         <colref linkend="room"/>

+ 1 - 1
lib/srdb1/schema/imc_rooms.xml

@@ -49,7 +49,7 @@
     </column>
     </column>
 
 
     <index>
     <index>
-        <name>nd_imc</name>
+        <name>name_domain_idx</name>
         <colref linkend="name"/>
         <colref linkend="name"/>
         <colref linkend="domain"/>
         <colref linkend="domain"/>
         <unique/>
         <unique/>

+ 3 - 3
lib/srdb1/schema/lcr.xml

@@ -56,17 +56,17 @@
     </column>
     </column>
 
 
     <index>
     <index>
-        <name>lcr_prefix_idx</name>
+        <name>prefix_idx</name>
         <colref linkend="prefix"/>
         <colref linkend="prefix"/>
     </index>
     </index>
 
 
     <index>
     <index>
-        <name>lcr_from_uri_idx</name>
+        <name>from_uri_idx</name>
         <colref linkend="from_uri"/>
         <colref linkend="from_uri"/>
     </index>
     </index>
 
 
     <index>
     <index>
-        <name>lcr_grp_id_idx</name>
+        <name>grp_id_idx</name>
         <colref linkend="grp_id"/>
         <colref linkend="grp_id"/>
     </index>
     </index>
 </table>
 </table>

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

@@ -32,7 +32,7 @@
         <type>string</type>
         <type>string</type>
         <size>&user_len;</size>
         <size>&user_len;</size>
         <default/>
         <default/>
-        <description>Alias Username / Phone Number </description>
+        <description>Username / phone number </description>
     </column>
     </column>
 
 
     <column id="domain">
     <column id="domain">
@@ -150,7 +150,7 @@
     </column>
     </column>
 
 
     <index>
     <index>
-        <name>udc_loc</name>
+        <name>account_contact_idx</name>
         <colref linkend="username"/>
         <colref linkend="username"/>
         <colref linkend="domain"/>
         <colref linkend="domain"/>
         <colref linkend="contact"/>
         <colref linkend="contact"/>

+ 1 - 1
lib/srdb1/schema/missed_calls.xml

@@ -81,7 +81,7 @@
     </column>
     </column>
     
     
     <index>
     <index>
-        <name>mc_callid_idx</name>
+        <name>callid_idx</name>
         <colref linkend="callid"/>
         <colref linkend="callid"/>
     </index>
     </index>
 </table>
 </table>

+ 1 - 1
lib/srdb1/schema/pdt.xml

@@ -50,7 +50,7 @@
     </column>
     </column>
 
 
     <index>
     <index>
-        <name>sp_pdt</name>
+        <name>sdomain_prefix_idx</name>
         <colref linkend="sdomain"/>
         <colref linkend="sdomain"/>
         <colref linkend="prefix"/>
         <colref linkend="prefix"/>
         <unique/>
         <unique/>

+ 1 - 1
lib/srdb1/schema/pr_active_watchers.xml

@@ -172,7 +172,7 @@
     </column>
     </column>
 
 
     <index>
     <index>
-        <name>pctt_watchers</name>
+        <name>active_watchers_idx</name>
         <colref linkend="presentity_uri"/>
         <colref linkend="presentity_uri"/>
         <colref linkend="callid"/>
         <colref linkend="callid"/>
         <colref linkend="to_tag"/>
         <colref linkend="to_tag"/>

+ 1 - 1
lib/srdb1/schema/pr_presentity.xml

@@ -75,7 +75,7 @@
     </column>
     </column>
 
 
     <index>
     <index>
-        <name>udee_presentity</name>
+        <name>presentity_idx</name>
         <colref linkend="username"/>
         <colref linkend="username"/>
         <colref linkend="domain"/>
         <colref linkend="domain"/>
         <colref linkend="event"/>
         <colref linkend="event"/>

+ 1 - 1
lib/srdb1/schema/pr_watchers.xml

@@ -78,7 +78,7 @@
     </column>
     </column>
 
 
     <index>
     <index>
-        <name>uude_watchers</name>
+        <name>watcher_idx</name>
         <colref linkend="presentity_uri"/>
         <colref linkend="presentity_uri"/>
         <colref linkend="watcher_username"/>
         <colref linkend="watcher_username"/>
         <colref linkend="watcher_domain"/>
         <colref linkend="watcher_domain"/>

+ 2 - 2
lib/srdb1/schema/pr_xcap_xml.xml

@@ -83,7 +83,7 @@
     </column>
     </column>
 
 
     <index>
     <index>
-        <name>udd_xcap</name>
+        <name>account_doc_type_idx</name>
         <colref linkend="username"/>
         <colref linkend="username"/>
         <colref linkend="domain"/>
         <colref linkend="domain"/>
         <colref linkend="doc_type"/>
         <colref linkend="doc_type"/>
@@ -91,7 +91,7 @@
     </index>
     </index>
 
 
     <index>
     <index>
-        <name>source_xcap</name>
+        <name>source_idx</name>
         <colref linkend="source"/>
         <colref linkend="source"/>
     </index>
     </index>
 
 

+ 2 - 1
lib/srdb1/schema/re_grp.xml

@@ -44,7 +44,8 @@
     </column>
     </column>
 
 
     <index>
     <index>
-        <name>gid_grp</name>
+        <name>group_idx</name>
         <colref linkend="group_id"/>
         <colref linkend="group_id"/>
     </index>
     </index>
+
 </table>
 </table>

+ 2 - 2
lib/srdb1/schema/rls_presentity.xml

@@ -82,14 +82,14 @@
     </column>
     </column>
 
 
     <index>
     <index>
-        <name>udid_rlspres</name>
+        <name>rls_presentity_idx</name>
         <colref linkend="rlsubs_did"/>
         <colref linkend="rlsubs_did"/>
         <colref linkend="resource_uri"/>
         <colref linkend="resource_uri"/>
         <unique/>
         <unique/>
     </index>
     </index>
 
 
     <index>
     <index>
-        <name>u_rlspres</name>
+        <name>updated_idx</name>
         <colref linkend="updated"/>
         <colref linkend="updated"/>
         <unique/>
         <unique/>
     </index>
     </index>

+ 1 - 1
lib/srdb1/schema/rls_watchers.xml

@@ -173,7 +173,7 @@
     </column>
     </column>
 
 
     <index>
     <index>
-        <name>pctt_rlwatchers</name>
+        <name>rls_watcher_idx</name>
         <colref linkend="pres_uri"/>
         <colref linkend="pres_uri"/>
         <colref linkend="callid"/>
         <colref linkend="callid"/>
         <colref linkend="to_tag"/>
         <colref linkend="to_tag"/>

+ 1 - 1
lib/srdb1/schema/silo.xml

@@ -96,7 +96,7 @@
     </column>
     </column>
 
 
     <index>
     <index>
-        <name>ud_silo</name>
+        <name>account_idx</name>
         <colref linkend="username"/>
         <colref linkend="username"/>
         <colref linkend="domain"/>
         <colref linkend="domain"/>
     </index>
     </index>

+ 4 - 4
lib/srdb1/schema/sip_trace.xml

@@ -105,22 +105,22 @@
     </column>
     </column>
 
 
     <index>
     <index>
-        <name>user_idx</name>
+        <name>traced_user_idx</name>
         <colref linkend="traced_user"/>
         <colref linkend="traced_user"/>
     </index>
     </index>
 
 
     <index>
     <index>
-        <name>date_id</name>
+        <name>date_idx</name>
         <colref linkend="date"/>
         <colref linkend="date"/>
     </index>
     </index>
 
 
     <index>
     <index>
-        <name>ip_idx</name>
+        <name>fromip_idx</name>
         <colref linkend="fromip"/>
         <colref linkend="fromip"/>
     </index>
     </index>
 
 
     <index>
     <index>
-        <name>call_id</name>
+        <name>callid_idx</name>
         <colref linkend="callid"/>
         <colref linkend="callid"/>
     </index>
     </index>
 
 

+ 1 - 1
lib/srdb1/schema/speed_dial.xml

@@ -92,7 +92,7 @@
     </column>
     </column>
 
 
     <index>
     <index>
-        <name>udss_sd</name>
+        <name>speed_dial_idx</name>
         <colref linkend="username"/>
         <colref linkend="username"/>
         <colref linkend="domain"/>
         <colref linkend="domain"/>
         <colref linkend="sd_domain"/>
         <colref linkend="sd_domain"/>

+ 2 - 2
lib/srdb1/schema/subscriber.xml

@@ -117,14 +117,14 @@
     </column>
     </column>
 
 
     <index>
     <index>
-        <name>user_id</name>
+        <name>account_idx</name>
         <colref linkend="username"/>
         <colref linkend="username"/>
         <colref linkend="domain"/>
         <colref linkend="domain"/>
         <unique/>
         <unique/>
     </index>
     </index>
 
 
     <index>
     <index>
-        <name>username_id</name>
+        <name>username_idx</name>
         <colref linkend="username"/>
         <colref linkend="username"/>
     </index>
     </index>
 
 

+ 1 - 1
lib/srdb1/schema/trusted.xml

@@ -61,7 +61,7 @@
     </column>
     </column>
 
 
     <index>
     <index>
-        <name>ip_addr</name>
+        <name>peer_idx</name>
         <colref linkend="src_ip"/>
         <colref linkend="src_ip"/>
     </index>
     </index>
 
 

+ 1 - 1
lib/srdb1/schema/uri.xml

@@ -59,7 +59,7 @@
     </column>
     </column>
 
 
     <index>
     <index>
-        <name>udu_uri</name>
+        <name>account_idx</name>
         <colref linkend="username"/>
         <colref linkend="username"/>
         <colref linkend="domain"/>
         <colref linkend="domain"/>
         <colref linkend="uri_user"/>
         <colref linkend="uri_user"/>