summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-04 00:07:46 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-04 00:07:46 -0400
commit784299c25778fccb3292b4f339446f37c11d2bf9 (patch)
tree79c910c04888597164448ab0ad0c72eda1273bab
parent7816e4122a1e9edb241c009b800714e31db5c356 (diff)
add a queued notice item
darcs-hash:20080704040746-84dde-36803f820ea7c238613cf5728c59a18ff1eb442d.gz
-rw-r--r--classes/Queue_item.php22
-rw-r--r--classes/stoica.ini8
-rw-r--r--db/laconica.sql11
3 files changed, 41 insertions, 0 deletions
diff --git a/classes/Queue_item.php b/classes/Queue_item.php
new file mode 100644
index 000000000..74e17ee0f
--- /dev/null
+++ b/classes/Queue_item.php
@@ -0,0 +1,22 @@
+<?php
+/**
+ * Table Definition for queue_item
+ */
+require_once 'DB/DataObject.php';
+
+class Queue_item extends DB_DataObject
+{
+ ###START_AUTOCODE
+ /* the code below is auto generated do not remove the above tag */
+
+ public $__table = 'queue_item'; // table name
+ public $notice_id; // int(4) primary_key not_null
+ public $created; // datetime() not_null
+ public $claimed; // datetime()
+
+ /* Static get */
+ function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('Queue_item',$k,$v); }
+
+ /* the code above is auto generated do not remove the tag below */
+ ###END_AUTOCODE
+}
diff --git a/classes/stoica.ini b/classes/stoica.ini
index 97f1a8bb6..3d59be8ee 100644
--- a/classes/stoica.ini
+++ b/classes/stoica.ini
@@ -75,6 +75,14 @@ modified = 384
[profile__keys]
id = N
+[queue_item]
+notice_id = 129
+created = 142
+claimed = 14
+
+[queue_item__keys]
+notice_id = K
+
[remember_me]
code = 130
user_id = 129
diff --git a/db/laconica.sql b/db/laconica.sql
index 46424ecce..66d9a9781 100644
--- a/db/laconica.sql
+++ b/db/laconica.sql
@@ -173,3 +173,14 @@ create table remember_me (
user_id integer not null comment 'user who is logged in' references user (id),
modified timestamp comment 'date this record was modified'
) ENGINE=InnoDB;
+
+create table queue_item (
+
+ notice_id integer not null primary key comment 'notice queued' references notice (id),
+ created datetime not null comment 'date this record was created',
+ claimed datetime comment 'date this item was claimed',
+
+ index queue_item_created_idx (created)
+
+) ENGINE=InnoDB;
+