preload __VERSION resultset
Arthur Axel 'fREW' Schmidt [Tue, 23 Feb 2010 04:07:27 +0000 (22:07 -0600)]
lib/DBIx/Class/DeploymentHandler.pm

index 6bbde02..0c584aa 100644 (file)
@@ -62,7 +62,10 @@ has version_rs => (
   handles    => [qw( is_installed db_version )],
 );
 
-method _build_version_rs { $self->schema->resultset('VersionResult') }
+method _build_version_rs {
+   $self->schema->set_us_up_the_bomb;
+   $self->schema->resultset('__VERSION')
+}
 
 method backup { $self->storage->backup($self->backup_directory) }