summaryrefslogtreecommitdiff
path: root/plugins/FeedSub/FeedSubPlugin.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@status.net>2010-01-04 10:30:19 -0800
committerBrion Vibber <brion@status.net>2010-01-04 10:30:58 -0800
commit783a2e249bac2ccd02b6ae3351dfe83630b71cc0 (patch)
treebf4456247c027d734ba0b4329df248df91287be9 /plugins/FeedSub/FeedSubPlugin.php
parent7a2d72fe28e29c67f2a9e8fdb59c6c5c9b38d5e6 (diff)
Fix for auto_increment parameter in auto-created tables via checkschema.
Update FeedSub plugin for non-Plugin_DataObject setup and working checkschema updates.
Diffstat (limited to 'plugins/FeedSub/FeedSubPlugin.php')
-rw-r--r--plugins/FeedSub/FeedSubPlugin.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/FeedSub/FeedSubPlugin.php b/plugins/FeedSub/FeedSubPlugin.php
index 857a9794d..e49e2a648 100644
--- a/plugins/FeedSub/FeedSubPlugin.php
+++ b/plugins/FeedSub/FeedSubPlugin.php
@@ -105,12 +105,11 @@ class FeedSubPlugin extends Plugin
return true;
}
- /*
- // auto increment seems to be broken
function onCheckSchema() {
+ // warning: the autoincrement doesn't seem to set.
+ // alter table feedinfo change column id id int(11) not null auto_increment;
$schema = Schema::get();
- $schema->ensureDataObject('Feedinfo');
+ $schema->ensureTable('feedinfo', Feedinfo::schemaDef());
return true;
}
- */
}