Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 6th, 2010  |  syntax: Diff  |  size: 0.75 KB  |  hits: 98  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --- statusnet-0.9.2/lib/pgsqlschema.php 2010-05-03 21:27:44.000000000 +0200
  2. +++ /srv/www/statusnet-0.9.2/lib/pgsqlschema.php        2010-05-06 14:18:54.094295603 +0200
  3. @@ -502,6 +505,10 @@
  4.          $sql = "{$cd->name} ";
  5.          $type = $this->_columnTypeTranslation($cd->type);
  6.  
  7. +        if (!empty($cd->auto_increment)) {
  8. +           $type = "bigserial";
  9. +        }
  10. +
  11.          if (!empty($cd->size)) {
  12.              $sql .= "{$type}({$cd->size}) ";
  13.          } else {
  14. @@ -514,10 +521,6 @@
  15.              $sql .= ($cd->nullable) ? "null " : "not null ";
  16.          }
  17.  
  18. -        if (!empty($cd->auto_increment)) {
  19. -            $sql .= " auto_increment ";
  20. -        }
  21. -
  22.          if (!empty($cd->extra)) {
  23.              $sql .= "{$cd->extra} ";
  24.          }