1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 23:57:29 +02:00

PostgreSQL: Support dropping auto_increment

This commit is contained in:
Jakub Vrana
2025-02-20 10:45:03 +01:00
parent f2e2c6e4ac
commit 94f75f9798
2 changed files with 2 additions and 4 deletions

View File

@@ -49,12 +49,9 @@ if ($_POST && !process_fields($row["fields"]) && !$error) {
if (!$field["has_default"]) { if (!$field["has_default"]) {
$field["default"] = null; $field["default"] = null;
} }
if ($key == $row["auto_increment_col"]) {
$field["auto_increment"] = true;
}
$process_field = process_field($field, $type_field); $process_field = process_field($field, $type_field);
$all_fields[] = array($field["orig"], $process_field, $after); $all_fields[] = array($field["orig"], $process_field, $after);
if (!$orig_field || $process_field != process_field($orig_field, $orig_field)) { if (!$orig_field || $process_field !== process_field($orig_field, $orig_field)) {
$fields[] = array($field["orig"], $process_field, $after); $fields[] = array($field["orig"], $process_field, $after);
if ($field["orig"] != "" || $after) { if ($field["orig"] != "" || $after) {
$use_all_fields = true; $use_all_fields = true;

View File

@@ -2,6 +2,7 @@ Adminer 4.16.0-dev:
MySQL: Fix saving bit(64) values (bug #839) MySQL: Fix saving bit(64) values (bug #839)
PostgreSQL: Preserve whitespace in EXPLAIN (bug #827) PostgreSQL: Preserve whitespace in EXPLAIN (bug #827)
PostgreSQL: Support SSL PostgreSQL: Support SSL
PostgreSQL: Support dropping auto_increment
SQLite: Fix altering forign keys (bug #841) SQLite: Fix altering forign keys (bug #841)
SQLite: Fix expressions in default values (bug #860) SQLite: Fix expressions in default values (bug #860)
MS SQL: Foreign keys in non-default schema (bug #833) MS SQL: Foreign keys in non-default schema (bug #833)