From: Arthur Axel 'fREW' Schmidt Date: Sat, 27 Feb 2010 18:13:19 +0000 (-0600) Subject: comments for the future me X-Git-Tag: v0.001000_01~103 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=63e95f13ebd911f857ab2d7b4934ebc00dd8af04;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git comments for the future me --- diff --git a/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm index 0f55471..f327386 100644 --- a/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm +++ b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm @@ -195,6 +195,15 @@ sub prepare_install { sub prepare_update { my ($self, $version, $preversion) = @_; + # this should be: + # + # $from_version ||= $db_version + # $to_version ||= $schema_version + # $version_set ||= [$from_version, $to_version]; + # + # for updates prepared automatically (rob's stuff) + # one would want to explicitly set $version_set to + # [$to_version] my $schema = $self->schema; my $databases = $self->databases; my $dir = $self->upgrade_directory;