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