1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-09 08:06:59 +02:00

PostgreSQL: Use bigserial for bigint auto increment (bug #765, regression from 3.0.0)

This commit is contained in:
Jakub Vrana
2021-02-06 15:33:50 +01:00
parent 8762895bb3
commit 23fdbedba1
2 changed files with 2 additions and 1 deletions

View File

@@ -510,7 +510,7 @@ ORDER BY connamespace, conname") as $row) {
$val5 = $val[5];
unset($val[5]);
if (isset($val[6]) && $field[0] == "") { // auto_increment
$val[1] = ($val[1] == "bigint" ? " big" : " ") . "serial";
$val[1] = ($val[1] == " bigint" ? " big" : " ") . "serial";
}
if ($field[0] == "") {
$alter[] = ($table != "" ? "ADD " : " ") . implode($val);