summaryrefslogtreecommitdiff
path: root/lib/schema.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-01-04 09:01:23 -1000
committerEvan Prodromou <evan@status.net>2010-01-04 09:01:23 -1000
commitb5e0f7d5725d4e106cf9f4b6383e0477a597fac6 (patch)
tree9b004ebacec1b71f724ce9c89e2d1c0fc362024a /lib/schema.php
parent5a1ea0b9b28138bc4e06d96e2910b0cf3be1eab2 (diff)
parente3466ab51cf68bd62ecd914a3771ed33de824e52 (diff)
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
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;
}