12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- define('INSTALLDIR', dirname(__DIR__));
- define('PUBLICDIR', INSTALLDIR . DIRECTORY_SEPARATOR . 'public');
- $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);
|