mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 18:50:47 -04:00
small documentation improvement
This commit is contained in:
parent
ebe10870cf
commit
011732a083
1 changed files with 2 additions and 2 deletions
4
3rdparty/MDB2/Driver/Manager/pgsql.php
vendored
4
3rdparty/MDB2/Driver/Manager/pgsql.php
vendored
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue