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
Download (untitled) / with headers
text/plain 221b
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; }
Download (untitled) / with headers
text/plain 124b
Thank you for the report. Applied with a slight modification: http://dev.catalystframework.org/svnweb/bast/revision?rev=9486


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.