From: Arthur Axel 'fREW' Schmidt Date: Thu, 15 Jul 2010 02:31:07 +0000 (-0500) Subject: No need to check what DBICDH does for us X-Git-Tag: v0.001003~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class-DeploymentHandler.git;a=commitdiff_plain;h=e336b016fe92c5e4a7a7d5a91bee8e0f6f8ef5c2 No need to check what DBICDH does for us --- diff --git a/lib/DBIx/Class/DeploymentHandler/Manual/CatalystIntro.pod b/lib/DBIx/Class/DeploymentHandler/Manual/CatalystIntro.pod index 59d6f53..308cbf9 100644 --- a/lib/DBIx/Class/DeploymentHandler/Manual/CatalystIntro.pod +++ b/lib/DBIx/Class/DeploymentHandler/Manual/CatalystIntro.pod @@ -100,10 +100,9 @@ C } sub upgrade { - die "Please set the version in Schema.pm" - unless $dh->schema->schema_version; die "Please update the version in Schema.pm" if ( $dh->version_storage->version_rs->search({version => $dh->schema_version})->count ); + die "We only support positive integers for versions around these parts." unless $dh->schema_version =~ /^\d+$/;