]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
database changes to say whether to deliver messages for a subscription
authorEvan Prodromou <evan@controlyourself.ca>
Tue, 9 Dec 2008 03:36:37 +0000 (22:36 -0500)
committerEvan Prodromou <evan@controlyourself.ca>
Tue, 9 Dec 2008 03:36:37 +0000 (22:36 -0500)
darcs-hash:20081209033637-5ed1f-df5ef40e57cc0e9485e34e2f5e46249dcb0d9130.gz

classes/Subscription.php
classes/laconica.ini
db/laconica.sql

index ace2fa4c429e70092ee3402713cf0964d27400ea..cc174fccee3fce58e022825e893767f82ff8f3ed 100644 (file)
@@ -32,6 +32,8 @@ class Subscription extends Memcached_DataObject
     public $__table = 'subscription';                    // table name
     public $subscriber;                      // int(4)  primary_key not_null
     public $subscribed;                      // int(4)  primary_key not_null
+    public $jabber;                          // tinyint(1)   default_1
+    public $sms;                             // tinyint(1)   default_1
     public $token;                           // varchar(255)  
     public $secret;                          // varchar(255)  
     public $created;                         // datetime()   not_null
index 4f5f9c2e4a8be4fca41b418de45899e3362e63a7..db76b2deed66b7e95ab3cf56147b2c49e9e5e76b 100644 (file)
@@ -268,6 +268,8 @@ id = N
 [subscription]
 subscriber = 129
 subscribed = 129
+jabber = 17
+sms = 17
 token = 2
 secret = 2
 created = 142
index 42e427d0bd7da44034398ef9fba5a183d608dc35..a366a6bcbb5225d92825d5317b9ade32dc7426f6 100644 (file)
@@ -88,6 +88,8 @@ create table remote_profile (
 create table subscription (
     subscriber integer not null comment 'profile listening',
     subscribed integer not null comment 'profile being listened to',
+    jabber tinyint default 1 comment 'deliver jabber messages',
+    sms tinyint default 1 comment 'deliver sms messages',
     token varchar(255) comment 'authorization token',
     secret varchar(255) comment 'token secret',
     created datetime not null comment 'date this record was created',