From: Arthur Axel 'fREW' Schmidt Date: Tue, 1 Jun 2010 04:53:25 +0000 (-0500) Subject: Directory specification complete X-Git-Tag: v0.001000_13~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=71d00500865b25168549259a7f08ca4da44c1519;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git Directory specification complete --- diff --git a/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm index ba85a31..f91345f 100644 --- a/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm +++ b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm @@ -743,7 +743,7 @@ The following subdirectories are recognized by this DeployMethod: =over 2 -=item C<_protoschema> This directory can have the following subdirs: +=item C<_protoschema> This directory can contain the following directories: =over 2 @@ -765,6 +765,42 @@ of the schema at that version. These files are not for editing by hand. =back +=item C<$storage_type> This is a set of scripts that gets run depending on +what your storage type is. If you are not sure what your storage type is, +take a look at the producers listed for L. Also note, +C<_generic> and C<_common> are special cases. C<_generic> will get run if +there is no directory for your given storage, and C<_common> will get merged +into whatever other files (C<_generic> or your storage type) you already have. +This directory can containt the following directories itself: + +=over 2 + +=item C Gets run before the C is Ced. Has the +same structure as the C subdirectory as well; that is, it has a +directory for each schema version. Unlike C, C, and C +though, it can only run C<.pl> files, and the coderef in the perl files get +no arguments passed to them. + +=item C Gets run when the schema is Ced. Structure is a +directory per schema version, and then files are merged with C<_common> and run +in filename order. C<.sql> files are merely run, as expected. C<.pl> files are +run according to L. + +=item C Gets run when the schema is Cd. Structure is a directory +per upgrade step, (for example, C<1-2> for upgrading from version 1 to version +2,) and then files are merged with C<_common> and run in filename order. +C<.sql> files are merely run, as expected. C<.pl> files are run according +to L. + +=item C Gets run when the schema is Cd. Structure is a directory +per downgrade step, (for example, C<2-1> for downgrading from version 2 to version +1,) and then files are merged with C<_common> and run in filename order. +C<.sql> files are merely run, as expected. C<.pl> files are run according +to L. + + +=back + =back =head1 PERL SCRIPTS