diff options
author | Brion Vibber <brion@status.net> | 2010-01-04 10:30:19 -0800 |
---|---|---|
committer | Brion Vibber <brion@status.net> | 2010-01-04 10:30:58 -0800 |
commit | 783a2e249bac2ccd02b6ae3351dfe83630b71cc0 (patch) | |
tree | bf4456247c027d734ba0b4329df248df91287be9 /lib | |
parent | 7a2d72fe28e29c67f2a9e8fdb59c6c5c9b38d5e6 (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')
-rw-r--r-- | lib/columndef.php | 1 | ||||
-rw-r--r-- | lib/schema.php | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/columndef.php b/lib/columndef.php index 1bae6b33b..ac2fcd23e 100644 --- a/lib/columndef.php +++ b/lib/columndef.php @@ -74,6 +74,7 @@ class ColumnDef * @param string $key type of key * @param value $default default value * @param value $extra unused + * @param boolean $auto_increment */ function __construct($name=null, $type=null, $size=null, 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; } |