From: Arthur Axel 'fREW' Schmidt Date: Sat, 3 Apr 2010 08:27:20 +0000 (-0500) Subject: More doc X-Git-Tag: v0.001000_01~10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=86e30368b69b64911e65bdfe69ddd24f6dab6737;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git More doc --- diff --git a/lib/DBIx/Class/DeploymentHandler/HandlesVersionStorage.pm b/lib/DBIx/Class/DeploymentHandler/HandlesVersionStorage.pm index f52f8de..596a48e 100644 --- a/lib/DBIx/Class/DeploymentHandler/HandlesVersionStorage.pm +++ b/lib/DBIx/Class/DeploymentHandler/HandlesVersionStorage.pm @@ -23,21 +23,23 @@ might want to do in your own storage. $dh->add_database_version({ version => '1.02', - ddl => $ddl # can be undef, - upgrade_sql => $sql # can be undef, + ddl => $ddl, # can be undef + upgrade_sql => $sql, # can be undef }); Store a new version into the version storage =method database_version - my $db_version = $version_storage->database_version; + my $db_version = $version_storage->database_version + +Returns the most recently installed version in the database. =method delete_database_version $dh->delete_database_version({ version => '1.02' }) -simply deletes given database version from the version storage +Deletes given database version from the version storage =method version_storage_is_installed