PostgreSQL 11: Create PRIMARY KEY for auto increment columns

This commit is contained in:
Jakub Vrana 2021-02-06 18:01:24 +01:00
parent 94194aac19
commit f8288dd227
2 changed files with 2 additions and 1 deletions

View file

@ -491,7 +491,7 @@ ORDER BY connamespace, conname") as $row) {
}
function auto_increment() {
return "";
return (min_version(11) ? " PRIMARY KEY" : "");
}
function alter_table($table, $name, $fields, $foreign, $comment, $engine, $collation, $auto_increment, $partitioning) {

View file

@ -8,6 +8,7 @@ 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 PDO: Support PgBouncer, unsupport PostgreSQL < 9.1 (bug #771)
PostgreSQL 10: Support GENERATED ALWAYS BY IDENTITY (PR #386)
PostgreSQL 11: Create PRIMARY KEY for auto increment columns
MS SQL: Don't truncate comments to 30 chars (PR #376)
Editor: Cast to string when searching (bug #325)
Re-enable PHP warnings (regression from 4.7.8)