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);

View file

@ -4,6 +4,7 @@ MySQL: Do not export names in quotes with sql_mode='ANSI_QUOTES' (bug #749)
PostgreSQL: Export all FKs after all CREATE TABLE (PR #351)
PostgreSQL: Fix dollar-quoted syntax highlighting (bug #738)
PostgreSQL: Do not show view definition from other schema (PR #392)
PostgreSQL: Use bigserial for bigint auto increment (bug #765, regression from 3.0.0)
PostgreSQL 10: Support GENERATED ALWAYS BY IDENTITY (PR #386)
MS SQL: Don't truncate comments to 30 chars (PR #376)
Re-enable PHP warnings (regression from 4.7.8)