]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
tweak RSSCloud plugin to use new schema layout (but still the old event); the timesta...
authorBrion Vibber <brion@pobox.com>
Fri, 29 Oct 2010 22:36:42 +0000 (15:36 -0700)
committerBrion Vibber <brion@pobox.com>
Fri, 29 Oct 2010 22:36:42 +0000 (15:36 -0700)
plugins/RSSCloud/RSSCloudPlugin.php

index bba0be515d4e068959656e023e784b6c7cfde18c..7d9c39a67da139c9fa093b63e4d7898a6ca266e6 100644 (file)
@@ -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;
     }