diff --git a/adminer/include/editing.inc.php b/adminer/include/editing.inc.php index b8ef821e..7bd2e960 100644 --- a/adminer/include/editing.inc.php +++ b/adminer/include/editing.inc.php @@ -38,6 +38,18 @@ function process_type($field, $collate = "COLLATE") { ; } +function type_class($type) { + if (ereg('char|text', $type)) { + return " class='char'"; + } elseif (ereg('date|time|year', $type)) { + return " class='date'"; + } elseif (ereg('binary|blob', $type)) { + return " class='binary'"; + } elseif (ereg('enum|set', $type)) { + return " class='enum'"; + } +} + function edit_fields($fields, $collations, $type = "TABLE", $allowed = 0, $foreign_keys = array()) { global $inout; $column_comments = false; diff --git a/adminer/schema.inc.php b/adminer/schema.inc.php index 6452561a..bcc91dc6 100644 --- a/adminer/schema.inc.php +++ b/adminer/schema.inc.php @@ -62,19 +62,7 @@ foreach ($schema as $name => $table) { echo "