]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add table for remember me codes
authorEvan Prodromou <evan@controlezvous.ca>
Tue, 24 Jun 2008 02:02:05 +0000 (22:02 -0400)
committerEvan Prodromou <evan@controlezvous.ca>
Tue, 24 Jun 2008 02:02:05 +0000 (22:02 -0400)
darcs-hash:20080624020205-34904-be536546e7058ed77a6d45be4f91ffe201b3448e.gz

classes/Remember_me.php [new file with mode: 0644]
classes/stoica.ini
db/laconica.sql

diff --git a/classes/Remember_me.php b/classes/Remember_me.php
new file mode 100644 (file)
index 0000000..fd21c2f
--- /dev/null
@@ -0,0 +1,22 @@
+<?php
+/**
+ * Table Definition for remember_me
+ */
+require_once 'DB/DataObject.php';
+
+class Remember_me extends DB_DataObject 
+{
+    ###START_AUTOCODE
+    /* the code below is auto generated do not remove the above tag */
+
+    public $__table = 'remember_me';                     // table name
+    public $code;                            // varchar(32)  primary_key not_null
+    public $user_id;                         // int(4)   not_null
+    public $modified;                        // timestamp()   not_null default_CURRENT_TIMESTAMP
+
+    /* Static get */
+    function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('Remember_me',$k,$v); }
+
+    /* the code above is auto generated do not remove the tag below */
+    ###END_AUTOCODE
+}
index 4fe395f59ca6425983a0b896fc6adaacec81f38b..97f1a8bb609cccda05a44be51458bc5dbf6e9566 100644 (file)
@@ -75,6 +75,14 @@ modified = 384
 [profile__keys]
 id = N
 
+[remember_me]
+code = 130
+user_id = 129
+modified = 384
+
+[remember_me__keys]
+code = K
+
 [remote_profile]
 id = 129
 uri = 2
index 5e612cbd8a339f82964034f2483cf143196132a5..f61d5de15d48cf6f148f61a14fd1ef59f477eca2 100644 (file)
@@ -167,3 +167,9 @@ create table confirm_address (
     address_type varchar(8) not null comment 'address type ("email", "jabber", "sms")',
     modified timestamp comment 'date this record was modified'
 ) ENGINE=InnoDB;
+
+create table remember_me (
+    code varchar(32) not null primary key comment 'good random code',
+    user_id integer not null comment 'user who is logged in' references user (id),
+    modified timestamp comment 'date this record was modified'
+) ENGINE=InnoDB;