From c8b14a1eff2bf175105606735637e259258222bf Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Wed, 8 Dec 2010 00:25:01 +0100 Subject: [PATCH] Default type is int or integer --- 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 2b5bd327..7171c864 100644 --- a/adminer/create.inc.php +++ b/adminer/create.inc.php @@ -93,7 +93,7 @@ page_header(($TABLE != "" ? lang('Alter table') : lang('Create table')), $error, $row = array( "Engine" => $_COOKIE["adminer_engine"], - "fields" => array(array("field" => "")), + "fields" => array(array("field" => "", "type" => (isset($types["int"]) ? "int" : (isset($types["integer"]) ? "integer" : "")))), "partition_names" => array(""), ); if ($_POST) { diff --git a/changes.txt b/changes.txt index f44b4fb9..b82e339e 100644 --- a/changes.txt +++ b/changes.txt @@ -4,6 +4,7 @@ All links and some forms by AJAX in browsers with support for history.pushState History: edit all MS SQL: auto primary and foreign key SQLite: display 0 +Create table default data type: int Adminer 3.1.0 (released 2010-11-16): TSV export and import