Browse code

- added missing presence tables

Jan Janak authored on 06/12/2005 14:57:43
Showing 7 changed files
... ...
@@ -1 +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) 
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) etag(str) published_id(str) 
2 2
new file mode 100644
... ...
@@ -0,0 +1 @@
1
+id(str) doc_version(int) dialog(str) expires(int) status(int) contact(str) uri(str) package(str) w_uri(str) 
0 2
new file mode 100644
... ...
@@ -0,0 +1 @@
1
+id(str,null) rls_id(str) uri(str) 
0 2
new file mode 100644
... ...
@@ -0,0 +1 @@
1
+id(str) name(str,null) lang(str,null) 
... ...
@@ -308,6 +308,8 @@ CREATE TABLE presentity_contact (
308 308
     contact VARCHAR(255),
309 309
     tupleid VARCHAR(64) NOT NULL,
310 310
     prescaps INT(10) NOT NULL,
311
+    etag VARCHAR(64) NOT NULL,
312
+    published_id VARCHAR(64) NOT NULL,
311 313
     UNIQUE KEY pc_idx1 (contactid),
312 314
     KEY presid_index (presid),
313 315
     KEY location_index (location),
... ...
@@ -333,6 +335,32 @@ CREATE TABLE watcherinfo (
333 335
     KEY wi_wuri_idx (w_uri)
334 336
 );
335 337
 
338
+CREATE TABLE rls_subscription (
339
+    id VARCHAR(48) NOT NULL,
340
+    doc_version INT NOT NULL,
341
+    dialog BLOB NOT NULL,
342
+    expires DATETIME NOT NULL DEFAULT '2005-12-02 09:00:13',
343
+    status INT NOT NULL,
344
+    contact VARCHAR(255) NOT NULL,
345
+    uri VARCHAR(255) NOT NULL,
346
+    package VARCHAR(128) NOT NULL,
347
+    w_uri VARCHAR(255) NOT NULL,
348
+    UNIQUE KEY rls_subscription_key (id)
349
+);
350
+
351
+CREATE TABLE rls_vs (
352
+    id VARCHAR(48),
353
+    rls_id VARCHAR(48) NOT NULL,
354
+    uri VARCHAR(255) NOT NULL,
355
+    UNIQUE KEY rls_vs_key (id)
356
+);
357
+
358
+CREATE TABLE rls_vs_names (
359
+    id VARCHAR(48) NOT NULL,
360
+    name VARCHAR(64),
361
+    lang VARCHAR(64)
362
+);
363
+
336 364
 CREATE TABLE i18n (
337 365
     code INT NOT NULL,
338 366
     reason_re VARCHAR(255) DEFAULT NULL,
... ...
@@ -296,6 +296,8 @@ CREATE TABLE presentity_contact (
296 296
     contact string(255),
297 297
     tupleid string(64) NOT NULL,
298 298
     prescaps int(10) NOT NULL,
299
+    etag string(64) NOT NULL,
300
+    published_id string(64) NOT NULL,
299 301
     pc_idx1 UNIQUE (contactid, ),
300 302
 
301 303
 );
... ...
@@ -318,6 +320,32 @@ CREATE TABLE watcherinfo (
318 320
 
319 321
 );
320 322
 
323
+CREATE TABLE rls_subscription (
324
+    id string(48) NOT NULL,
325
+    doc_version int NOT NULL,
326
+    dialog binary NOT NULL,
327
+    expires datetime NOT NULL DEFAULT '2005-12-02 09:00:13',
328
+    status int NOT NULL,
329
+    contact string(255) NOT NULL,
330
+    uri string(255) NOT NULL,
331
+    package string(128) NOT NULL,
332
+    w_uri string(255) NOT NULL,
333
+    rls_subscription_key UNIQUE (id, )
334
+);
335
+
336
+CREATE TABLE rls_vs (
337
+    id string(48),
338
+    rls_id string(48) NOT NULL,
339
+    uri string(255) NOT NULL,
340
+    rls_vs_key UNIQUE (id, )
341
+);
342
+
343
+CREATE TABLE rls_vs_names (
344
+    id string(48) NOT NULL,
345
+    name string(64),
346
+    lang string(64)
347
+);
348
+
321 349
 CREATE TABLE i18n (
322 350
     code int NOT NULL,
323 351
     reason_re string(255) DEFAULT NULL,
... ...
@@ -319,6 +319,8 @@ CREATE TABLE presentity_contact (
319 319
     contact VARCHAR(255),
320 320
     tupleid VARCHAR(64) NOT NULL,
321 321
     prescaps INTEGER NOT NULL,
322
+    etag VARCHAR(64) NOT NULL,
323
+    published_id VARCHAR(64) NOT NULL,
322 324
     CONSTRAINT pc_idx1 UNIQUE (contactid)
323 325
 );
324 326
 
... ...
@@ -346,6 +348,32 @@ CREATE TABLE watcherinfo (
346 348
 CREATE INDEX wi_ruri_idx ON watcherinfo (r_uri);
347 349
 CREATE INDEX wi_wuri_idx ON watcherinfo (w_uri);
348 350
 
351
+CREATE TABLE rls_subscription (
352
+    id VARCHAR(48) NOT NULL,
353
+    doc_version INTEGER NOT NULL,
354
+    dialog BYTEA NOT NULL,
355
+    expires TIMESTAMP NOT NULL DEFAULT '2005-12-02 09:00:13',
356
+    status INTEGER NOT NULL,
357
+    contact VARCHAR(255) NOT NULL,
358
+    uri VARCHAR(255) NOT NULL,
359
+    package VARCHAR(128) NOT NULL,
360
+    w_uri VARCHAR(255) NOT NULL,
361
+    CONSTRAINT rls_subscription_key UNIQUE (id)
362
+);
363
+
364
+CREATE TABLE rls_vs (
365
+    id VARCHAR(48),
366
+    rls_id VARCHAR(48) NOT NULL,
367
+    uri VARCHAR(255) NOT NULL,
368
+    CONSTRAINT rls_vs_key UNIQUE (id)
369
+);
370
+
371
+CREATE TABLE rls_vs_names (
372
+    id VARCHAR(48) NOT NULL,
373
+    name VARCHAR(64),
374
+    lang VARCHAR(64)
375
+);
376
+
349 377
 CREATE TABLE i18n (
350 378
     code INTEGER NOT NULL,
351 379
     reason_re VARCHAR(255) DEFAULT NULL,