From 6df4ed697cfe2489f2909980a2b7b6da7365e6d7 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 6 Oct 2010 18:28:19 -0700 Subject: [PATCH] quickie script to test schema fetch --- scripts/dumpschema.php | 45 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 scripts/dumpschema.php 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 -- 2.39.2