summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-20 16:05:30 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-20 16:05:30 -0400
commit48ac5b9e85f48b2adfb34209a26d1119fdeaf172 (patch)
tree89e2b5a292b1a064d681c4247bc44253194ec570
parentbb366ab0b881f4e5c8534b5d1542fd550918f58a (diff)
add autosubscribe flag to users
darcs-hash:20080720200530-84dde-dade3117bdf510c1880d35f27bd9352995725175.gz
-rw-r--r--classes/User.php1
-rw-r--r--classes/stoica.ini1
-rw-r--r--db/laconica.sql1
3 files changed, 3 insertions, 0 deletions
diff --git a/classes/User.php b/classes/User.php
index 82e1002a4..36111ac0c 100644
--- a/classes/User.php
+++ b/classes/User.php
@@ -45,6 +45,7 @@ class User extends DB_DataObject
public $carrier; // int(4)
public $smsnotify; // tinyint(1)
public $uri; // varchar(255) unique_key
+ public $autosubscribe; // tinyint(1)
public $created; // datetime() not_null
public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
diff --git a/classes/stoica.ini b/classes/stoica.ini
index c79e095dc..955b4d9fc 100644
--- a/classes/stoica.ini
+++ b/classes/stoica.ini
@@ -169,6 +169,7 @@ sms = 2
carrier = 1
smsnotify = 17
uri = 2
+autosubscribe = 17
created = 142
modified = 384
diff --git a/db/laconica.sql b/db/laconica.sql
index a598e4470..3c8478beb 100644
--- a/db/laconica.sql
+++ b/db/laconica.sql
@@ -56,6 +56,7 @@ create table user (
carrier integer comment 'foreign key to sms_carrier' references sms_carrier (id),
smsnotify tinyint default 0 comment 'whether to send notices to SMS',
uri varchar(255) unique key comment 'universally unique identifier, usually a tag URI',
+ autosubscribe tinyint default 0 comment 'automatically subscribe to users who subscribe to us',
created datetime not null comment 'date this record was created',
modified timestamp comment 'date this record was modified'
) ENGINE=MyISAM;