From: Brion Vibber Date: Thu, 7 Oct 2010 01:28:19 +0000 (-0700) Subject: quickie script to test schema fetch X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6df4ed697cfe2489f2909980a2b7b6da7365e6d7;p=quix0rs-gnu-social.git quickie script to test schema fetch --- diff --git a/scripts/dumpschema.php b/scripts/dumpschema.php new file mode 100644 index 0000000000..567eadfb20 --- /dev/null +++ b/scripts/dumpschema.php @@ -0,0 +1,45 @@ +#!/usr/bin/env php +. + */ + +define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); + +$helptext = <<getTableDef($tableName); + var_export($def); + echo "\n"; +} + +if (count($args)) { + foreach ($args as $tableName) { + dumpTable($tableName); + } +} else { + show_help($helptext); +} \ No newline at end of file