From 66a16f501b58196e5f8b1c976f074d39ac3bce4d Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Wed, 13 Jan 2010 22:32:34 -0500 Subject: [PATCH] Adapt to the new Migrator API, and log migrations to STDOUT --- horde/bin/db_migrate | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/horde/bin/db_migrate b/horde/bin/db_migrate index b35d32861..c1d557c58 100755 --- a/horde/bin/db_migrate +++ b/horde/bin/db_migrate @@ -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': -- 2.11.0