X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FDeploymentHandler%2FVersionStorage%2FStandard.pm;h=4cf489f135b05c8bf3e37d04336d53bbcc73fde0;hb=aabd4237190bfe45a6bea6387baf9d7c301357d2;hp=0d9cd887696279c621107fe0c44733f309285e39;hpb=0905dc0e9b45f555ae9217e163132cc49a5eaf23;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard.pm b/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard.pm index 0d9cd88..4cf489f 100644 --- a/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard.pm +++ b/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard.pm @@ -11,22 +11,22 @@ has schema => ( has version_rs => ( isa => 'DBIx::Class::ResultSet', is => 'ro', - lazy_build => 1, # builder comes from another role... - # which is... probably not how we want it + lazy_build => 1, handles => [qw( database_version version_storage_is_installed )], ); with 'DBIx::Class::DeploymentHandler::HandlesVersionStorage'; sub _build_version_rs { - $_[0]->schema->set_us_up_the_bomb; - $_[0]->schema->resultset('__VERSION') + $_[0]->schema->register_class( + __VERSION => + 'DBIx::Class::DeploymentHandler::VersionStorage::Standard::VersionResult' + ); + $_[0]->schema->resultset('__VERSION') } sub add_database_version { $_[0]->version_rs->create($_[1]) } -sub install_version_storage { die } - 1; __END__