Adapt to the new Migrator API, and log migrations to STDOUT
authorChuck Hagenbuch <chuck@horde.org>
Thu, 14 Jan 2010 03:32:34 +0000 (22:32 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Thu, 14 Jan 2010 03:32:34 +0000 (22:32 -0500)
horde/bin/db_migrate

index b35d328..c1d557c 100755 (executable)
@@ -55,7 +55,8 @@ if (!empty($args[1])) {
 
 // Run
 $dir = $GLOBALS['registry']->get('fileroot', $app) . '/migrations/';
-$migrator = new Horde_Db_Migration_Migrator($db, $dir);
+$logger = new Horde_Log_Logger(new Horde_Log_Handler_Stream(STDOUT));
+$migrator = new Horde_Db_Migration_Migrator($db, $logger, array('migrationsPath' => $dir, 'schemaTableName' => $app . '_schema_info'));
 try {
     switch ($action) {
     case 'up':