
Untitled
By: a guest on
May 6th, 2010 | syntax:
Diff | size: 0.75 KB | hits: 98 | expires: Never
--- statusnet-0.9.2/lib/pgsqlschema.php 2010-05-03 21:27:44.000000000 +0200
+++ /srv/www/statusnet-0.9.2/lib/pgsqlschema.php 2010-05-06 14:18:54.094295603 +0200
@@ -502,6 +505,10 @@
$sql = "{$cd->name} ";
$type = $this->_columnTypeTranslation($cd->type);
+ if (!empty($cd->auto_increment)) {
+ $type = "bigserial";
+ }
+
if (!empty($cd->size)) {
$sql .= "{$type}({$cd->size}) ";
} else {
@@ -514,10 +521,6 @@
$sql .= ($cd->nullable) ? "null " : "not null ";
}
- if (!empty($cd->auto_increment)) {
- $sql .= " auto_increment ";
- }
-
if (!empty($cd->extra)) {
$sql .= "{$cd->extra} ";
}