summaryrefslogtreecommitdiff
path: root/plugins/RSSCloud
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-10-29 15:36:42 -0700
committerBrion Vibber <brion@pobox.com>2010-10-29 15:36:42 -0700
commit283d56bed338ca2a6852a1ae50cf8d5ded4c9fef (patch)
tree377950e051753198bf569132571f761e8c6955e9 /plugins/RSSCloud
parent345b7d33b8f641f23157fb7d73740f24169b46f9 (diff)
tweak RSSCloud plugin to use new schema layout (but still the old event); the timestamp bits were confusing things
Diffstat (limited to 'plugins/RSSCloud')
-rw-r--r--plugins/RSSCloud/RSSCloudPlugin.php23
1 files changed, 10 insertions, 13 deletions
diff --git a/plugins/RSSCloud/RSSCloudPlugin.php b/plugins/RSSCloud/RSSCloudPlugin.php
index bba0be515..7d9c39a67 100644
--- a/plugins/RSSCloud/RSSCloudPlugin.php
+++ b/plugins/RSSCloud/RSSCloudPlugin.php
@@ -209,19 +209,16 @@ class RSSCloudPlugin extends Plugin
{
$schema = Schema::get();
$schema->ensureTable('rsscloud_subscription',
- array(new ColumnDef('subscribed', 'integer',
- null, false, 'PRI'),
- new ColumnDef('url', 'varchar',
- '255', false, 'PRI'),
- new ColumnDef('failures', 'integer',
- null, false, null, 0),
- new ColumnDef('created', 'datetime',
- null, false),
- new ColumnDef('modified', 'timestamp',
- null, false, null,
- 'CURRENT_TIMESTAMP',
- 'on update CURRENT_TIMESTAMP')
- ));
+ array(
+ 'fields' => array(
+ 'subscribed' => array('type' => 'int', 'not null' => true),
+ 'url' => array('type' => 'varchar', 'length' => '255', 'not null' => true),
+ 'failures' => array('type' => 'int', 'not null' => true, 'default' => 0),
+ 'created' => array('type' => 'datetime', 'not null' => true),
+ 'modified' => array('type' => 'timestamp', 'not null' => true),
+ ),
+ 'primary key' => array('subscribed', 'url'),
+ ));
return true;
}