comments for the future me
[dbsrgits/DBIx-Class-DeploymentHandler.git] / 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;