NAME
DBIx::Class::Migration::Script::Help::databases - Which databases are we building migrations for?
SYNOPSIS
dbic-migration prepare --databases SQLite --databases mysql
DESCRIPTION
- Aliases
-
database
- Value
-
Str or Array of Str (default: SQLite)
Used when building "migration"" in "DBIx::Class::Migration::Script to define the target databases we are building migration files for. You can name any of the databases currently supported by SQL::Translator. If you leave this undefined we will derive a value based on the value of "dsn" in DBIx::Class::Migration::Script. For example, if your "dsn" in DBIx::Class::Migration::Script is "DBI:SQLite:test.db", we will set the value of "databases" in DBIx::Class::Migration::Script to ['SQLite']
.
You can prepare deployment for any database type that SQL::Translator understand. By default we only prepare a deployment version for the database which matches the "dsn" in DBIx::Class::Migration::Script you specified but you can use this to prepare additional deployments
dbic-migration prepare --database SQLite --database MySQL --PostgreSQL
Please note if you choose to manually set this value, you won't automatically get the default or inferred database, you'll need to specify all the SQLT database types you wish.
SEE ALSO
DBIx::Class::Migration, DBIx::Class::Migration::Script, DBIx::Class::Migration::Features, DBIx::Class::Migration::Tutorial
AUTHOR
See DBIx::Class::Migration for author information
COPYRIGHT & LICENSE
See DBIx::Class::Migration for copyright and license information