Subject: | dbicadmin --upgrade does not use specified --sql-dir |
When trying to upgrade a deployed schema with dbicadmin the diff files
must currently exist in ./sql, no matter what you specify in --sql-dir.
This patch sets the upgrade_directory on the schema before running
upgrade.
Subject: | upgrade_directory.diff |
--- lib/DBIx/Class/Admin.pm (revision 9414)
+++ lib/DBIx/Class/Admin.pm (working copy)
@@ -338,6 +338,7 @@
# schema is unversioned
$schema->throw_exception ("Could not determin current schema version, please either install() or deploy().\n");
} else {
+ $schema->upgrade_directory($self->sql_dir);
my $ret = $schema->upgrade();
return $ret;
}