summaryrefslogtreecommitdiff
path: root/plugins/TwitterBridge/TwitterBridgePlugin.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-09-07 04:17:36 -0400
committerEvan Prodromou <evan@status.net>2010-09-07 04:17:36 -0400
commit86b6d7b722e99c409b966dd7d7ea4807bac070c6 (patch)
tree2f383901bf8b30a34c3f6e1004dff88d495f907f /plugins/TwitterBridge/TwitterBridgePlugin.php
parenta46ba0b54842ae304a642030e006ead5dbe6361f (diff)
save synch status for different timelines
Diffstat (limited to 'plugins/TwitterBridge/TwitterBridgePlugin.php')
-rw-r--r--plugins/TwitterBridge/TwitterBridgePlugin.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/TwitterBridge/TwitterBridgePlugin.php b/plugins/TwitterBridge/TwitterBridgePlugin.php
index bad6a3941..2ac06746d 100644
--- a/plugins/TwitterBridge/TwitterBridgePlugin.php
+++ b/plugins/TwitterBridge/TwitterBridgePlugin.php
@@ -208,6 +208,7 @@ class TwitterBridgePlugin extends Plugin
include_once $dir . '/' . strtolower($cls) . '.php';
return false;
case 'Notice_to_status':
+ case 'Twitter_synch_status':
include_once $dir . '/' . $cls . '.php';
return false;
default:
@@ -378,6 +379,19 @@ class TwitterBridgePlugin extends Plugin
{
$schema = Schema::get();
+ // For saving the last-synched status of various timelines
+ // home_timeline, messages (in), messages (out), ...
+
+ $schema->ensureTable('twitter_synch_status',
+ array(new ColumnDef('user_id', 'integer', null,
+ false, 'PRI'),
+ new ColumnDef('timeline', 'varchar', 255,
+ false, 'PRI'),
+ new ColumnDef('last_id', 'bigint', null, // XXX: check for PostgreSQL
+ false),
+ new ColumnDef('created', 'datetime', null,
+ false)));
+
// For storing user-submitted flags on profiles
$schema->ensureTable('notice_to_status',