DESCRIPTION

DBIx::Class::DeploymentHandler is, as its name suggests, a tool for deploying and upgrading databases with DBIx::Class. It is designed to be much more flexible than DBIx::Class::Schema::Versioned, hence the use of Moose and lots of roles.

DBIx::Class::DeploymentHandler itself is just a recommended set of roles that we think will not only work well for everyone, but will also yield the best overall mileage. Each role it uses has its own nuances and documentation, so I won't describe all of them here, but here are a few of the major benefits over how DBIx::Class::Schema::Versioned worked (and DBIx::Class::DeploymentHandler::Deprecated tries to maintain compatibility with):

Downgrades in addition to upgrades.

Multiple sql files files per upgrade/downgrade/install.

Perl scripts allowed for upgrade/downgrade/install.

Just one set of files needed for upgrade, unlike before where one might need to generate factorial(scalar @versions), which is just silly.

And much, much more!

That's really just a taste of some of the differences. Check out each role for all the details.

Now you should be able to use DBIx::Class::DeploymentHandler like normal!

LOGGING

This is a complex tool, and because of that sometimes you'll want to see what exactly is happening. The best way to do that is to use the built in logging functionality. It the standard six log levels; fatal, error, warn, info, debug, and trace. Most of those are pretty self explanatory. Generally a safe level to see what all is going on is debug, which will give you everything except for the exact SQL being run.

To enable the various logging levels all you need to do is set an environment variables: DBICDH_FATAL, DBICDH_ERROR, DBICDH_WARN, DBICDH_INFO, DBICDH_DEBUG, and DBICDH_TRACE. Each level can be set on its own, but the default is the first three on and the last three off, and the levels cascade, so if you turn on trace the rest will turn on automatically.

DONATIONS

If you'd like to thank me for the work I've done on this module, don't give me a donation. I spend a lot of free time creating free software, but I do it because I love it.