summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/Queue_item.php2
-rw-r--r--classes/stoica.ini1
-rw-r--r--db/laconica.sql3
3 files changed, 4 insertions, 2 deletions
diff --git a/classes/Queue_item.php b/classes/Queue_item.php
index 2ae78d9f6..862511883 100644
--- a/classes/Queue_item.php
+++ b/classes/Queue_item.php
@@ -11,7 +11,7 @@ class Queue_item extends DB_DataObject
public $__table = 'queue_item'; // table name
public $notice_id; // int(4) primary_key not_null
- public $transport; // varchar(8) not_null
+ public $transport; // varchar(8) primary_key not_null
public $created; // datetime() not_null
public $claimed; // datetime()
diff --git a/classes/stoica.ini b/classes/stoica.ini
index 4dead9610..4e78dd325 100644
--- a/classes/stoica.ini
+++ b/classes/stoica.ini
@@ -154,6 +154,7 @@ claimed = 14
[queue_item__keys]
notice_id = K
+transport = K
[remember_me]
code = 130
diff --git a/db/laconica.sql b/db/laconica.sql
index da2a1c89d..f8e5fce87 100644
--- a/db/laconica.sql
+++ b/db/laconica.sql
@@ -233,11 +233,12 @@ create table remember_me (
create table queue_item (
- notice_id integer not null primary key comment 'notice queued' references notice (id),
+ notice_id integer not null comment 'notice queued' references notice (id),
transport varchar(8) not null comment 'queue for what? "email", "jabber", "sms", "irc", ...',
created datetime not null comment 'date this record was created',
claimed datetime comment 'date this item was claimed',
+ constraint primary key (notice_id, transport),
index queue_item_created_idx (created)
) ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_bin;