<? /* * setup_currencies_database.php * * @(#) $Id: setup_currency_database.php,v 1.2 2008/06/08 22:32:03 mlemos Exp $ * */
require("metabase/metabase_parser.php"); require("metabase/metabase_manager.php"); require("metabase/metabase_database.php"); require("metabase/metabase_interface.php"); require("metabase/xml_parser.php");
Function Output($message) { echo $message,"\n"; }
Function Dump($output) { echo $output; }
$input_file=($argc<2 ? "currencies.schema" : $argv[1]); require("database_setup.php");
$manager=new metabase_manager_class; if(!$manager->UpdateDatabase($input_file, $input_file.".before", $database_arguments, $schema_variables)) echo "Error: ".$manager->error."\n"; if(count($manager->warnings)>0) echo "WARNING:\n",implode($manager->warnings,"!\n"),"\n"; if($manager->database) echo MetabaseDebugOutput($manager->database);
?>
|