Răsfoiți Sursa

- added missing instance column to locatio table
- credentials table index relaxed (not unique, there
can be several instances of credentials with different
flags).

Jan Janak 20 ani în urmă
părinte
comite
ae350e54c0

+ 0 - 1
db/schema/credentials.xml

@@ -101,7 +101,6 @@
     </column>
     </column>
 
 
     <index>
     <index>
-	<unique/>
 	<colref linkend="credentials.username"/>
 	<colref linkend="credentials.username"/>
 	<colref linkend="credentials.realm"/>
 	<colref linkend="credentials.realm"/>
     </index>
     </index>

+ 7 - 0
db/schema/location.xml

@@ -68,6 +68,13 @@
 	<null/>
 	<null/>
     </column>
     </column>
 
 
+    <column>
+	<name>instance</name>
+	<type>string</type>
+        <null/>
+	<size>&uri_len;</size>
+    </column>
+
     <index>
     <index>
 	<name>location_key</name>
 	<name>location_key</name>
 	<unique/>
 	<unique/>

+ 1 - 1
scripts/dbtext/ser_db/location

@@ -1 +1 @@
-uid(str) contact(str) received(str,null) expires(int) q(double) callid(str,null) cseq(int,null) flags(int) user_agent(str,null) 
+uid(str) contact(str) received(str,null) expires(int) q(double) callid(str,null) cseq(int,null) flags(int) user_agent(str,null) instance(str,null) 

+ 1 - 0
scripts/mysql/my_create.sql

@@ -161,6 +161,7 @@ CREATE TABLE location (
     cseq INT UNSIGNED,
     cseq INT UNSIGNED,
     flags INT UNSIGNED NOT NULL DEFAULT '0',
     flags INT UNSIGNED NOT NULL DEFAULT '0',
     user_agent VARCHAR(64),
     user_agent VARCHAR(64),
+    instance VARCHAR(255),
     UNIQUE KEY location_key (uid, contact),
     UNIQUE KEY location_key (uid, contact),
     KEY location_contact (contact)
     KEY location_contact (contact)
 );
 );

+ 1 - 0
scripts/oracle/or_create.sql

@@ -157,6 +157,7 @@ CREATE TABLE location (
     cseq int,
     cseq int,
     flags int NOT NULL DEFAULT '0',
     flags int NOT NULL DEFAULT '0',
     user_agent string(64),
     user_agent string(64),
+    instance string(255),
     location_key UNIQUE (uid, contact, ),
     location_key UNIQUE (uid, contact, ),
 
 
 );
 );

+ 1 - 0
scripts/postgres/pg_create.sql

@@ -163,6 +163,7 @@ CREATE TABLE location (
     cseq INTEGER,
     cseq INTEGER,
     flags INTEGER NOT NULL DEFAULT '0',
     flags INTEGER NOT NULL DEFAULT '0',
     user_agent VARCHAR(64),
     user_agent VARCHAR(64),
+    instance VARCHAR(255),
     CONSTRAINT location_key UNIQUE (uid, contact)
     CONSTRAINT location_key UNIQUE (uid, contact)
 );
 );