projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
236b104
)
Adapt to the new Migrator API, and log migrations to STDOUT
author
Chuck Hagenbuch
<chuck@horde.org>
Thu, 14 Jan 2010 03:32:34 +0000
(22:32 -0500)
committer
Chuck Hagenbuch
<chuck@horde.org>
Thu, 14 Jan 2010 03:32:34 +0000
(22:32 -0500)
horde/bin/db_migrate
patch
|
blob
|
history
diff --git
a/horde/bin/db_migrate
b/horde/bin/db_migrate
index
b35d328
..
c1d557c
100755
(executable)
--- 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':