From 48ac5b9e85f48b2adfb34209a26d1119fdeaf172 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 20 Jul 2008 16:05:30 -0400 Subject: [PATCH] add autosubscribe flag to users darcs-hash:20080720200530-84dde-dade3117bdf510c1880d35f27bd9352995725175.gz --- classes/User.php | 1 + classes/stoica.ini | 1 + db/laconica.sql | 1 + 3 files changed, 3 insertions(+) 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; -- 2.39.5