Browse Source

pua(k): increased the size of pres_id in the database table

- the pua pres_id table field is used as the subsid in rls.  The pres_id
  was originally a 64 character field, but an rls subsid (consisting of
  Call-ID, To tag, and From tag) can easily exceed this.
pd 14 years ago
parent
commit
3d9ea85fcc

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

@@ -37,7 +37,7 @@
     <column>
     <column>
         <name>pres_id</name>
         <name>pres_id</name>
         <type>string</type>
         <type>string</type>
-        <size>&domain_len;</size>
+        <size>255</size>
         <description>ID</description>
         <description>ID</description>
     </column>
     </column>
 
 

+ 1 - 1
utils/kamctl/db_sqlite/presence-create.sql

@@ -71,7 +71,7 @@ INSERT INTO version (table_name, table_version) values ('pua','6');
 CREATE TABLE pua (
 CREATE TABLE pua (
     id INTEGER PRIMARY KEY NOT NULL,
     id INTEGER PRIMARY KEY NOT NULL,
     pres_uri VARCHAR(128) NOT NULL,
     pres_uri VARCHAR(128) NOT NULL,
-    pres_id VARCHAR(64) NOT NULL,
+    pres_id VARCHAR(255) NOT NULL,
     event INTEGER NOT NULL,
     event INTEGER NOT NULL,
     expires INTEGER NOT NULL,
     expires INTEGER NOT NULL,
     desired_expires INTEGER NOT NULL,
     desired_expires INTEGER NOT NULL,

+ 1 - 1
utils/kamctl/mysql/presence-create.sql

@@ -71,7 +71,7 @@ INSERT INTO version (table_name, table_version) values ('pua','6');
 CREATE TABLE pua (
 CREATE TABLE pua (
     id INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
     id INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
     pres_uri VARCHAR(128) NOT NULL,
     pres_uri VARCHAR(128) NOT NULL,
-    pres_id VARCHAR(64) NOT NULL,
+    pres_id VARCHAR(255) NOT NULL,
     event INT(11) NOT NULL,
     event INT(11) NOT NULL,
     expires INT(11) NOT NULL,
     expires INT(11) NOT NULL,
     desired_expires INT(11) NOT NULL,
     desired_expires INT(11) NOT NULL,

+ 1 - 1
utils/kamctl/oracle/presence-create.sql

@@ -103,7 +103,7 @@ INSERT INTO version (table_name, table_version) values ('pua','6');
 CREATE TABLE pua (
 CREATE TABLE pua (
     id NUMBER(10) PRIMARY KEY,
     id NUMBER(10) PRIMARY KEY,
     pres_uri VARCHAR2(128),
     pres_uri VARCHAR2(128),
-    pres_id VARCHAR2(64),
+    pres_id VARCHAR2(255),
     event NUMBER(10),
     event NUMBER(10),
     expires NUMBER(10),
     expires NUMBER(10),
     desired_expires NUMBER(10),
     desired_expires NUMBER(10),

+ 1 - 1
utils/kamctl/postgres/presence-create.sql

@@ -71,7 +71,7 @@ INSERT INTO version (table_name, table_version) values ('pua','6');
 CREATE TABLE pua (
 CREATE TABLE pua (
     id SERIAL PRIMARY KEY NOT NULL,
     id SERIAL PRIMARY KEY NOT NULL,
     pres_uri VARCHAR(128) NOT NULL,
     pres_uri VARCHAR(128) NOT NULL,
-    pres_id VARCHAR(64) NOT NULL,
+    pres_id VARCHAR(255) NOT NULL,
     event INTEGER NOT NULL,
     event INTEGER NOT NULL,
     expires INTEGER NOT NULL,
     expires INTEGER NOT NULL,
     desired_expires INTEGER NOT NULL,
     desired_expires INTEGER NOT NULL,