Skip Menu |

This queue is for tickets about the DBIx-Class CPAN distribution.

Report information
The Basics
Id: 57732
Status: resolved
Priority: 0/
Queue: DBIx-Class

People
Owner: Nobody in particular
Requestors: LEEDO [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.08121
Fixed in: 0.08122



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; }
Thank you for the report. Applied with a slight modification: http://dev.catalystframework.org/svnweb/bast/revision?rev=9486