summaryrefslogtreecommitdiff
path: root/lib/schema.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 /lib/schema.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 'lib/schema.php')
-rw-r--r--lib/schema.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/schema.php b/lib/schema.php
index a8ba91b87..6fe442d56 100644
--- a/lib/schema.php
+++ b/lib/schema.php
@@ -523,6 +523,10 @@ class Schema
} else {
$sql .= ($cd->nullable) ? "null " : "not null ";
}
+
+ if (!empty($cd->auto_increment)) {
+ $sql .= " auto_increment ";
+ }
return $sql;
}