From: Arthur Axel 'fREW' Schmidt Date: Tue, 27 Apr 2010 18:21:11 +0000 (-0500) Subject: doc doc doc X-Git-Tag: v0.001000_04~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f7e215c9d2af2471f4586336fb7ed1ae3725be07;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git doc doc doc --- diff --git a/lib/DBIx/Class/DeploymentHandler.pm b/lib/DBIx/Class/DeploymentHandler.pm index 0e26850..1fd2038 100644 --- a/lib/DBIx/Class/DeploymentHandler.pm +++ b/lib/DBIx/Class/DeploymentHandler.pm @@ -29,8 +29,8 @@ sub install_version_storage { } sub prepare_install { - $_[0]->prepare_deploy; - $_[0]->prepare_version_storage_install; + $_[0]->prepare_deploy; + $_[0]->prepare_version_storage_install; } __PACKAGE__->meta->make_immutable; @@ -52,7 +52,7 @@ __END__ sqltargs => { add_drop_table => 0 }, }); - $dh->prepare_deploy; + $dh->prepare_install; $dh->install; @@ -134,6 +134,13 @@ L. Creates the needed C<.sql> file to install the version storage and not the rest of the tables +=method prepare_install + + $dh->prepare_install + +First prepare all the tables to be installed and the prepare just the version +storage + =method install_version_storage $dh->install_version_storage diff --git a/lib/DBIx/Class/DeploymentHandler/Dad.pm b/lib/DBIx/Class/DeploymentHandler/Dad.pm index f948f21..fe8656b 100644 --- a/lib/DBIx/Class/DeploymentHandler/Dad.pm +++ b/lib/DBIx/Class/DeploymentHandler/Dad.pm @@ -85,6 +85,11 @@ __END__ The L (B) that is used to talk to the database and generate the DDL. +=attr schema_version + +The version that the schema is currently at. Defaults to +C<< $self->schema->schema_version >>. + =attr backup_directory The directory where backups are stored