From: Arthur Axel 'fREW' Schmidt Date: Sat, 5 May 2012 04:59:30 +0000 (-0500) Subject: Remove isa check on schema attributes X-Git-Tag: v0.002113~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fe048ee301e219d737307f2b30e3bd88a7128df6;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git Remove isa check on schema attributes --- diff --git a/Changes b/Changes index c2c4d18..0edb2c2 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ Revision history for {{$dist->name}} {{$NEXT}} + - Remove isa check on schema attributes so that you may pass the schema + class instead of the schema object 0.002112 2012-04-03 21:11:19 America/Chicago - Handle errors in Perl Scripts better diff --git a/lib/DBIx/Class/DeploymentHandler/Dad.pm b/lib/DBIx/Class/DeploymentHandler/Dad.pm index 7b6247b..d9e4b27 100644 --- a/lib/DBIx/Class/DeploymentHandler/Dad.pm +++ b/lib/DBIx/Class/DeploymentHandler/Dad.pm @@ -13,7 +13,6 @@ use Log::Contextual ':log', -package_logger => }); has schema => ( - isa => 'DBIx::Class::Schema', is => 'ro', required => 1, ); diff --git a/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm index e328b5c..7a0d7e9 100644 --- a/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm +++ b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm @@ -38,7 +38,6 @@ has force_overwrite => ( ); has schema => ( - isa => 'DBIx::Class::Schema', is => 'ro', required => 1, ); diff --git a/lib/DBIx/Class/DeploymentHandler/VersionStorage/Deprecated.pm b/lib/DBIx/Class/DeploymentHandler/VersionStorage/Deprecated.pm index 9fd2b89..2e0a9f6 100644 --- a/lib/DBIx/Class/DeploymentHandler/VersionStorage/Deprecated.pm +++ b/lib/DBIx/Class/DeploymentHandler/VersionStorage/Deprecated.pm @@ -10,7 +10,6 @@ use Log::Contextual ':log', -package_logger => # ABSTRACT: (DEPRECATED) Use this if you are stuck in the past has schema => ( - isa => 'DBIx::Class::Schema', is => 'ro', required => 1, ); diff --git a/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard.pm b/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard.pm index 8a14b9e..a428534 100644 --- a/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard.pm +++ b/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard.pm @@ -11,7 +11,6 @@ use Log::Contextual ':log', -package_logger => use DBIx::Class::DeploymentHandler::VersionStorage::Standard::VersionResult; has schema => ( - isa => 'DBIx::Class::Schema', is => 'ro', required => 1, );