From: Anthony Gladdish Date: Wed, 23 Mar 2011 14:53:57 +0000 (-0500) Subject: add some extra doc for non-integer version users X-Git-Tag: v0.001005~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3d416c8f66d964a153fccd0c3fc45d03b148879f;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git add some extra doc for non-integer version users --- diff --git a/lib/DBIx/Class/DeploymentHandler/Cookbook/CustomResultSource.pod b/lib/DBIx/Class/DeploymentHandler/Cookbook/CustomResultSource.pod index eeea7c4..2f1b79d 100644 --- a/lib/DBIx/Class/DeploymentHandler/Cookbook/CustomResultSource.pod +++ b/lib/DBIx/Class/DeploymentHandler/Cookbook/CustomResultSource.pod @@ -94,3 +94,9 @@ table being set on the original result. __PACKAGE__->meta->make_immutable; 1; +Note: if you are using decimal numbers for versioning, you should ammend +this DeploymentHandler package, setting it's VersionHandler class_name from +Monotonic ( which handles integer only version numbers ) to ExplicitVersions +or DatabaseToSchemaVersions, as these handle version numbers as strings +instead of integers. + diff --git a/lib/DBIx/Class/DeploymentHandler/Manual/Intro.pod b/lib/DBIx/Class/DeploymentHandler/Manual/Intro.pod index 1601656..1148b53 100644 --- a/lib/DBIx/Class/DeploymentHandler/Manual/Intro.pod +++ b/lib/DBIx/Class/DeploymentHandler/Manual/Intro.pod @@ -36,7 +36,12 @@ or if you are using a newer Perl you can use the prettier syntax: By default DBIx::Class::DeploymentHandler only uses integers for versions, this makes versioning much simpler for figuring out what version is next -(or previous.) +(or previous.) However, if you are using decimal numbers for versioning, +you will need to create a separate DeploymentHandler class, as per +L, and +set the VersionHandler class_name from Monotonic to ExplicitVersions or +DatabaseToSchemaVersions, as these handle version numbers as strings instead +of integers. =head1 install.pl