DBIx::Class::Migration::RunScript - Control your Perl Migration Run Scripts
Using the builder exported subroutine:
builder
use DBIx::Class::Migration::RunScript; builder { 'SchemaLoader', sub { shift->schema->resultset('Country') ->populate([ ['code'], ['bel'], ['deu'], ['fra'], ]); }; };
Alternatively, use the migrate exported subroutine for normal defaults.
migrate
use DBIx::Class::Migration::RunScript; migrate { shift->schema ->resultset('Country') ->populate([ ['code'], ['bel'], ['deu'], ['fra'], ]); };
When using Perl based run files for your migrations, this class lets you manage that and offers a clean method to add in functionality.
See DBIx::Class::Migration::Tutorial for an extended discussion.
This class defines the follow attributes
An arrayref of the from / to version you are attempting to migrate.
The current database handle to the database you are trying to migrate.
This class defines the following exports
Allows you to construct a migration script from a subroutine and also lets you specify plugins.
Run a migration subref with default plugins.
DBIx::Class::Migration.
See DBIx::Class::Migration for author information
See DBIx::Class::Migration for copyright and license information
To install DBIx::Class::Migration, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Class::Migration
CPAN shell
perl -MCPAN -e shell install DBIx::Class::Migration
For more information on module installation, please visit the detailed CPAN module installation guide.