123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
- $helptext = <<<END_OF_SHOWTABLE_HELP
- showtable.php <tablename>
- Shows the structure of a table
- END_OF_SHOWTABLE_HELP;
- require_once INSTALLDIR.'/scripts/commandline.inc';
- if (count($args) != 1) {
- show_help();
- }
- $name = $args[0];
- $schema = Schema::get();
- $td = $schema->getTableDef($name);
- print_r($td);
|