table of contents
DBIx::Class::Migration::Script::Help::fixture_sets(3) | User Contributed Perl Documentation | DBIx::Class::Migration::Script::Help::fixture_sets(3) |
NAME¶
DBIx::Class::Migration::Script::Help::fixture_sets - fixture sets to dump or load
SYNOPSIS¶
dbic-migration dump --fixture_set roles --fixture_set core
DESCRIPTION¶
When dumping or populating fixture sets, you use this to set which sets.
Please note that if you manually describe your sets as in the above example, you don't automatically get the "all_tables" set, which is a fixture set of all database information and not 'all' the sets.
We automatically create the "all_tables" fixture set description file for you when you prepare a new migration of the schema. You can use this set for early testing but I recommend you study DBIx::Class::Fixtures and learn the set configuration rules, and create limited fixture sets for given purposes, rather than just dump / populate everything, since that is like to get big pretty fast
My recommendation is to create a core 'seed' set, of default database values, such as role types, default users, lists of countries, etc. and then create a 'demo' or 'dev' set that contains extra information useful to populate a database so that you can run test cases and develop against.
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
2020-06-03 | perl v5.40.0 |