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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1274471074-6784-267"
Content-Length: 0
Content-Type: text/plain; charset="UTF-8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
Content-Length: 221
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
MIME-Version: 1.0
Content-Type: text/x-patch; name="upgrade_directory.diff"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline; filename="upgrade_directory.diff"
Content-Transfer-Encoding: binary
Content-Length: 372
--- 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; }
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-10879-1275327364-1751.57732-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 124
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.