]> git.joonet.de Git - adminer.git/commitdiff
Default type is int or integer
authorJakub Vrana <jakub@vrana.cz>
Tue, 7 Dec 2010 23:25:01 +0000 (00:25 +0100)
committerJakub Vrana <jakub@vrana.cz>
Tue, 7 Dec 2010 23:25:01 +0000 (00:25 +0100)
adminer/create.inc.php
changes.txt

index 2b5bd327c0861a508802e31d1bace511e659b476..7171c8648581912ee2837ac13bc7e83a46d36e7c 100644 (file)
@@ -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) {
index f44b4fb93b1f77e1c846f4692f916b595dc89f8a..b82e339e61a73a847b14f625f8ced840e81d5633 100644 (file)
@@ -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