DBIx::Class::DeploymentAdapter - Deployment handler adapter to your DBIC app, which offers some candy
use DBIx::Class::DeploymentAdapter; my $args = { schema => $schema, script_directory => './share/migrations', databases => ['MySQL'], sql_translator_args => { mysql_enable_utf8 => 1 }, }; $args->{to_version} = $to_version if $to_version; $args->{force_overwrite} = $force_overwrite if $force_overwrite; my $da = DBIx::Class::DeploymentAdapter->new($args);
Deployment handler adapter to your DBIC app, which offers some candy
Installs the schema files to the given Database
$da->install;
Summarize all prepares from DBIx::Class::DeploymentHandler in one Command
$da->prepare;
Returns the Status of database and schema versions as string
$da->status;
Upgrade the database version step by step, if anything wents wrong, it dies with the specific database error.
You can give a target version to the method to make it stop there
$da->upgrade_incremental; $da->upgrade_incremental(112);
Copyright (C) Jens Gassmann Software-Entwicklung.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Patrick Kilter <pk@gassmann.it> Jens Gassmann <jg@gassmann.it>
To install DBIx::Class::DeploymentAdapter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Class::DeploymentAdapter
CPAN shell
perl -MCPAN -e shell install DBIx::Class::DeploymentAdapter
For more information on module installation, please visit the detailed CPAN module installation guide.