]> source.dussan.org Git - nextcloud-server.git/commitdiff
small documentation improvement
authorRobin Appelman <icewind@owncloud.com>
Mon, 16 Jan 2012 01:20:29 +0000 (02:20 +0100)
committerRobin Appelman <icewind@owncloud.com>
Mon, 16 Jan 2012 01:20:29 +0000 (02:20 +0100)
3rdparty/MDB2/Driver/Manager/pgsql.php

index c99dd08e8ef34de7eeb7e5935433ae97b1e521f9..b2252bce1ca7e6dafcfeaa8446cacf164cba6a65 100644 (file)
@@ -396,8 +396,8 @@ class MDB2_Driver_Manager_pgsql extends MDB2_Driver_Manager_Common
                     }
                     $db->loadModule('Datatype', null, true);
                     $type = $db->datatype->getTypeDeclaration($field['definition']);
-                    if($type=='SERIAL PRIMARY KEY'){//not correct when altering a table
-                                               $type='integer';//use this instead
+                    if($type=='SERIAL PRIMARY KEY'){//not correct when altering a table, since serials arent a real type
+                                               $type='INTERGER';//use integer instead
                     }
                     $query = "ALTER $field_name TYPE $type USING CAST($field_name AS $type)";
                     $result = $db->exec("ALTER TABLE $name $query");