DBIx::Class::Migration::Script::Help::sandbox_class
dbic-migration install --schema_class MyApp::Schema --sandbox_class MySQLSandbox
T, sb
String (default: SqliteSandbox)
If you don't have a target database for your migrations (as you might not for your development setup, or during initial prototyping) we automatically create a local database sandbox in your "target_dir".
By default this sandbox is a file based DBD::Sqlite database, which is an easy option since changes are good this is already installed on your development computer (and if not it is trivial to install).
You can change this to either 'PostgresqlSandbox' or 'MySQLSandbox', which will create a sandbox using either DBIx::Class::Migration::MySQLSandbox or DBIx::Class::Migration::PostgresqlSandbox (which in term require the separate installation of either Test::mysqld or Test::PostgreSQL).
Like some of the other option flags you can specify with an %ENV setting:
export DBIC_MIGRATION_SANDBOX_CLASS=MySQLSandbox
The default sqlite sandbox is documented at DBIx::Class::Migration::SQLiteSandbox although this single file database is pretty straightforward to use.
DBIx::Class::Migration, DBIx::Class::Migration::Script, DBIx::Class::Migration::Features, DBIx::Class::Migration::Tutorial
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.