diff --git a/classes/User.php b/classes/User.php index 82e1002a4d..36111ac0c3 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 c79e095dce..955b4d9fcf 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 a598e44709..3c8478beba 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;