comments for the future me
Arthur Axel 'fREW' Schmidt [Sat, 27 Feb 2010 18:13:19 +0000 (12:13 -0600)]
lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm

index 0f55471..f327386 100644 (file)
@@ -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;