From: Arthur Axel 'fREW' Schmidt Date: Tue, 23 Feb 2010 04:07:27 +0000 (-0600) Subject: preload __VERSION resultset X-Git-Tag: v0.001000_01~150 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=30749dbfff6036f9451f1d4da80cb06d1eb2c1ca;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git preload __VERSION resultset --- diff --git a/lib/DBIx/Class/DeploymentHandler.pm b/lib/DBIx/Class/DeploymentHandler.pm index 6bbde02..0c584aa 100644 --- a/lib/DBIx/Class/DeploymentHandler.pm +++ b/lib/DBIx/Class/DeploymentHandler.pm @@ -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) }