From 7296f017fb9f4242fdeebd56bf86bc5c78c784d1 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 1 Feb 2018 13:55:11 +0100 Subject: [PATCH] Display options for timestamp columns when creating a new table (thanks to Robert Vlach) --- adminer/create.inc.php | 2 +- changes.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/adminer/create.inc.php b/adminer/create.inc.php index 1d881fff..0f8bbb9f 100644 --- a/adminer/create.inc.php +++ b/adminer/create.inc.php @@ -120,7 +120,7 @@ page_header(($TABLE != "" ? lang('Alter table') : lang('Create table')), $error, if (!$_POST) { $row = array( "Engine" => $_COOKIE["adminer_engine"], - "fields" => array(array("field" => "", "type" => (isset($types["int"]) ? "int" : (isset($types["integer"]) ? "integer" : "")))), + "fields" => array(array("field" => "", "type" => (isset($types["int"]) ? "int" : (isset($types["integer"]) ? "integer" : "")), "on_update" => "")), "partition_names" => array(""), ); diff --git a/changes.txt b/changes.txt index eb7a328f..44ab86a6 100644 --- a/changes.txt +++ b/changes.txt @@ -4,6 +4,7 @@ PHP <5.3 compatibility even with Elasticsearch enabled Fully support functions in default values Stop redirecting links via adminer.org Support X-Forwarded-Prefix +Display options for timestamp columns when creating a new table MySQL, PostgreSQL: Display warnings MariaDB: Support JSON since MariaDB 10.2 PostgreSQL: Support functions