summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-08-25 22:31:16 -0400
committerEvan Prodromou <evan@prodromou.name>2008-08-25 22:31:16 -0400
commit3d48ae94e61626b0a4d0c474ca1ff1fb355346d4 (patch)
tree71353188482607eeb500fa77f812b307359ddb97
parent19614f33a4dc3758f5453cc91a4e3e8ae19d3878 (diff)
added a created timestamp to invitations
darcs-hash:20080826023116-84dde-7d80c624b2dcfa637f58509c1d5ff7eca371512c.gz
-rw-r--r--classes/Invitation.php1
-rw-r--r--classes/stoica.ini1
-rw-r--r--db/laconica.sql1
3 files changed, 3 insertions, 0 deletions
diff --git a/classes/Invitation.php b/classes/Invitation.php
index 7480acebe..cc3c3b937 100644
--- a/classes/Invitation.php
+++ b/classes/Invitation.php
@@ -14,6 +14,7 @@ class Invitation extends DB_DataObject
public $user_id; // int(4) not_null
public $address; // varchar(255) multiple_key not_null
public $address_type; // varchar(8) multiple_key not_null
+ public $created; // datetime() not_null
/* Static get */
function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('Invitation',$k,$v); }
diff --git a/classes/stoica.ini b/classes/stoica.ini
index b4a4d26f9..f702178d9 100644
--- a/classes/stoica.ini
+++ b/classes/stoica.ini
@@ -89,6 +89,7 @@ code = 130
user_id = 129
address = 130
address_type = 130
+created = 142
[invitation__keys]
code = K
diff --git a/db/laconica.sql b/db/laconica.sql
index 52d52cd75..613cc5820 100644
--- a/db/laconica.sql
+++ b/db/laconica.sql
@@ -293,6 +293,7 @@ create table invitation (
user_id int not null comment 'who sent the invitation' references user (id),
address varchar(255) not null comment 'invitation sent to',
address_type varchar(8) not null comment 'address type ("email", "jabber", "sms")',
+ created datetime not null comment 'date this record was created',
index invitation_address_idx (address, address_type),
index invitation_user_id_idx (user_id)