Show domain base type and comment in domains list
authorchriskl <chriskl>
Wed, 31 Mar 2004 08:09:54 +0000 (08:09 +0000)
committerchriskl <chriskl>
Wed, 31 Mar 2004 08:09:54 +0000 (08:09 +0000)
HISTORY
domains.php

diff --git a/HISTORY b/HISTORY
index ffd1e92f36d130e7b49d48c8fb299cdb9f920d4d..6c1bd1b03ae809a3d67b448c7d55d77ef5238af7 100644 (file)
--- a/HISTORY
+++ b/HISTORY
@@ -10,6 +10,7 @@ Features
 * Allow creating array columns in tables
 * Allow adding array columns to tables
 * Allow creating domains with type length and arrays
+* Show domain base type and comment in domains list
 
 Bugs
 * Fix pg_dump output for PostgreSQL 7.0.x and 7.1.x
index 3a103f875634c380c22042bd344de7f81f01ac09..4cd1c64a80df20a2c556d7f27360c851b3905154 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * Manage domains in a database
         *
-        * $Id: domains.php,v 1.9 2004/03/31 07:46:39 chriskl Exp $
+        * $Id: domains.php,v 1.10 2004/03/31 08:09:55 chriskl Exp $
         */
 
        // Include application functions
                
                if ($domains->recordCount() > 0) {
                        echo "<table>\n";
-                       echo "<tr><th class=\"data\">{$lang['strdomain']}</th><th class=\"data\">{$lang['strnotnull']}</th>";
+                       echo "<tr><th class=\"data\">{$lang['strdomain']}</th><th class=\"data\">{$lang['strtype']}</th><th class=\"data\">{$lang['strnotnull']}</th>";
                        echo "<th class=\"data\">{$lang['strdefault']}</th><th class=\"data\">{$lang['strowner']}</th>";
-                       echo "<th colspan=\"2\" class=\"data\">{$lang['stractions']}</th></tr>\n";
+                       echo "<th colspan=\"2\" class=\"data\">{$lang['stractions']}</th><th class=\"data\">{$lang['strcomment']}</th></tr>\n";
                        $i = 0;
                        while (!$domains->EOF) {
                                $domains->f['domnotnull'] = $data->phpBool($domains->f['domnotnull']);
                                $id = (($i % 2) == 0 ? '1' : '2');
                                echo "<tr><td class=\"data{$id}\">", $misc->printVal($domains->f['domname']), "</td>\n";
+                               echo "<td class=\"data{$id}\">", $misc->printVal($domains->f['domtype']), "</td>\n";
                                echo "<td class=\"data{$id}\">", ($domains->f['domnotnull'] ? 'NOT NULL' : ''), "</td>\n";
                                echo "<td class=\"data{$id}\">", $misc->printVal($domains->f['domdef']), "</td>\n";
                                echo "<td class=\"data{$id}\">", $misc->printVal($domains->f['domowner']), "</td>\n";
                                echo "<td class=\"opbutton{$id}\"><a href=\"$PHP_SELF?action=properties&amp;{$misc->href}&amp;domain=", urlencode($domains->f['domname']), "\">{$lang['strproperties']}</a></td>\n"; 
                                echo "<td class=\"opbutton{$id}\"><a href=\"$PHP_SELF?action=confirm_drop&amp;{$misc->href}&amp;domain=", urlencode($domains->f['domname']), "\">{$lang['strdrop']}</a></td>\n";
+                               echo "<td class=\"data{$id}\">", $misc->printVal($domains->f['domcomment']), "</td>\n";
                                echo "</tr>\n";
                                $domains->moveNext();
                                $i++;