Browse Source

- added missing presence tables

Jan Janak 20 years ago
parent
commit
77b36d4915

+ 1 - 1
scripts/dbtext/ser_db/presentity_contact

@@ -1 +1 @@
-contactid(int,auto) presid(int) basic(str) status(str) location(str) expires(int) placeid(int,null) priority(double) contact(str,null) tupleid(str) prescaps(int) 
+contactid(int,auto) presid(int) basic(str) status(str) location(str) expires(int) placeid(int,null) priority(double) contact(str,null) tupleid(str) prescaps(int) etag(str) published_id(str) 

+ 1 - 0
scripts/dbtext/ser_db/rls_subscription

@@ -0,0 +1 @@
+id(str) doc_version(int) dialog(str) expires(int) status(int) contact(str) uri(str) package(str) w_uri(str) 

+ 1 - 0
scripts/dbtext/ser_db/rls_vs

@@ -0,0 +1 @@
+id(str,null) rls_id(str) uri(str) 

+ 1 - 0
scripts/dbtext/ser_db/rls_vs_names

@@ -0,0 +1 @@
+id(str) name(str,null) lang(str,null) 

+ 28 - 0
scripts/mysql/my_create.sql

@@ -308,6 +308,8 @@ CREATE TABLE presentity_contact (
     contact VARCHAR(255),
     tupleid VARCHAR(64) NOT NULL,
     prescaps INT(10) NOT NULL,
+    etag VARCHAR(64) NOT NULL,
+    published_id VARCHAR(64) NOT NULL,
     UNIQUE KEY pc_idx1 (contactid),
     KEY presid_index (presid),
     KEY location_index (location),
@@ -333,6 +335,32 @@ CREATE TABLE watcherinfo (
     KEY wi_wuri_idx (w_uri)
 );
 
+CREATE TABLE rls_subscription (
+    id VARCHAR(48) NOT NULL,
+    doc_version INT NOT NULL,
+    dialog BLOB NOT NULL,
+    expires DATETIME NOT NULL DEFAULT '2005-12-02 09:00:13',
+    status INT NOT NULL,
+    contact VARCHAR(255) NOT NULL,
+    uri VARCHAR(255) NOT NULL,
+    package VARCHAR(128) NOT NULL,
+    w_uri VARCHAR(255) NOT NULL,
+    UNIQUE KEY rls_subscription_key (id)
+);
+
+CREATE TABLE rls_vs (
+    id VARCHAR(48),
+    rls_id VARCHAR(48) NOT NULL,
+    uri VARCHAR(255) NOT NULL,
+    UNIQUE KEY rls_vs_key (id)
+);
+
+CREATE TABLE rls_vs_names (
+    id VARCHAR(48) NOT NULL,
+    name VARCHAR(64),
+    lang VARCHAR(64)
+);
+
 CREATE TABLE i18n (
     code INT NOT NULL,
     reason_re VARCHAR(255) DEFAULT NULL,

+ 28 - 0
scripts/oracle/or_create.sql

@@ -296,6 +296,8 @@ CREATE TABLE presentity_contact (
     contact string(255),
     tupleid string(64) NOT NULL,
     prescaps int(10) NOT NULL,
+    etag string(64) NOT NULL,
+    published_id string(64) NOT NULL,
     pc_idx1 UNIQUE (contactid, ),
 
 );
@@ -318,6 +320,32 @@ CREATE TABLE watcherinfo (
 
 );
 
+CREATE TABLE rls_subscription (
+    id string(48) NOT NULL,
+    doc_version int NOT NULL,
+    dialog binary NOT NULL,
+    expires datetime NOT NULL DEFAULT '2005-12-02 09:00:13',
+    status int NOT NULL,
+    contact string(255) NOT NULL,
+    uri string(255) NOT NULL,
+    package string(128) NOT NULL,
+    w_uri string(255) NOT NULL,
+    rls_subscription_key UNIQUE (id, )
+);
+
+CREATE TABLE rls_vs (
+    id string(48),
+    rls_id string(48) NOT NULL,
+    uri string(255) NOT NULL,
+    rls_vs_key UNIQUE (id, )
+);
+
+CREATE TABLE rls_vs_names (
+    id string(48) NOT NULL,
+    name string(64),
+    lang string(64)
+);
+
 CREATE TABLE i18n (
     code int NOT NULL,
     reason_re string(255) DEFAULT NULL,

+ 28 - 0
scripts/postgres/pg_create.sql

@@ -319,6 +319,8 @@ CREATE TABLE presentity_contact (
     contact VARCHAR(255),
     tupleid VARCHAR(64) NOT NULL,
     prescaps INTEGER NOT NULL,
+    etag VARCHAR(64) NOT NULL,
+    published_id VARCHAR(64) NOT NULL,
     CONSTRAINT pc_idx1 UNIQUE (contactid)
 );
 
@@ -346,6 +348,32 @@ CREATE TABLE watcherinfo (
 CREATE INDEX wi_ruri_idx ON watcherinfo (r_uri);
 CREATE INDEX wi_wuri_idx ON watcherinfo (w_uri);
 
+CREATE TABLE rls_subscription (
+    id VARCHAR(48) NOT NULL,
+    doc_version INTEGER NOT NULL,
+    dialog BYTEA NOT NULL,
+    expires TIMESTAMP NOT NULL DEFAULT '2005-12-02 09:00:13',
+    status INTEGER NOT NULL,
+    contact VARCHAR(255) NOT NULL,
+    uri VARCHAR(255) NOT NULL,
+    package VARCHAR(128) NOT NULL,
+    w_uri VARCHAR(255) NOT NULL,
+    CONSTRAINT rls_subscription_key UNIQUE (id)
+);
+
+CREATE TABLE rls_vs (
+    id VARCHAR(48),
+    rls_id VARCHAR(48) NOT NULL,
+    uri VARCHAR(255) NOT NULL,
+    CONSTRAINT rls_vs_key UNIQUE (id)
+);
+
+CREATE TABLE rls_vs_names (
+    id VARCHAR(48) NOT NULL,
+    name VARCHAR(64),
+    lang VARCHAR(64)
+);
+
 CREATE TABLE i18n (
     code INTEGER NOT NULL,
     reason_re VARCHAR(255) DEFAULT NULL,