From: Guillermo Roditi Date: Tue, 24 Feb 2009 00:14:42 +0000 (+0000) Subject: correct args in wrong order in deplo_statements X-Git-Tag: v0.08240~57 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class.git;a=commitdiff_plain;h=0233fc64c715d17f066fa7df5c93c42d845e6e85;hp=9ac2c0f847ed7950294c7777ea5f0488c34982d2 correct args in wrong order in deplo_statements --- diff --git a/Changes b/Changes index ebe5ca7..61f5831 100644 --- a/Changes +++ b/Changes @@ -14,6 +14,8 @@ Revision history for DBIx::Class possible. See the Cookbook for details. (robkinyon, michaelr) - Massive rewrite of Ordered to properly handle position constraints and to make it more matpath-friendly + - deploy_statements called ddl_filename with the $version and $dir arguments + in the wrong order. (groditi) 0.08099_06 2009-01-23 07:30:00 (UTC) - Allow a scalarref to be supplied to the 'from' resultset attribute diff --git a/lib/DBIx/Class/Storage/DBI.pm b/lib/DBIx/Class/Storage/DBI.pm index 6679a57..99f860c 100644 --- a/lib/DBIx/Class/Storage/DBI.pm +++ b/lib/DBIx/Class/Storage/DBI.pm @@ -1775,7 +1775,7 @@ sub deployment_statements { $type ||= $self->sqlt_type; $version ||= $schema->schema_version || '1.x'; $dir ||= './'; - my $filename = $schema->ddl_filename($type, $dir, $version); + my $filename = $schema->ddl_filename($type, $version, $dir); if(-f $filename) { my $file;