DBIx-Class-Migration

 view release on metacpan or  search on metacpan

lib/DBIx/Class/Migration/Tutorial.pod  view on Meta::CPAN

=head2 version

An integer which represents a snapshot of a schema or database that is frozen
for use.  Versions increment positively (1,2,...) and can differ between your
schema and your database.

=head2 fixture configuration

L<DBIx::Class::Fixtures> defined rule for serializing a subset of information
from a database.  Is linked to a version and produces L</fixtures>

=head2 fixtures

Subsets of information from your database, linked to a version, in the form of
individual files.

=head2 migration

SQL and Perl files associated with a given version, or an upgrade or downgrade
between versions.

=head2 deployment

fixture configurations, fixtures and deployment files for a given version, and
how to upgrade or downgrade to that version.

=head1 NEXT STEPS: TABLE OF CONTENTS

Here's the next steps in the tutorial.  It goes without saying that you should
have a good working installation of Perl, and a dedicated L<local::lib>.  Please
see L<App::perlbrew> for help setting up such a perl installation.

I also assume you have SQLite installed and parts of the advanced tutorial will
assume you have MySQL available.  Please see L<MySQL::Sandbox> for some help in
getting a development instance of MySQL running.

=head2 STEP 1: Setup Project Files

L<DBIx::Class::Migration::Tutorial::Setup> shows you how to bootstrap a very
basic L<DBIx::Class> driven application.

=head2 STEP 2: First Migration, using dbic-migration and fixtures.

L<DBIx::Class::Migration::Tutorial::FirstMigration> takes the basic application
and prepare some migrations.

=head2 STEP 3: Creating upgrades and modify the database

L<DBIx::Class::Migration::Tutorial::SecondMigration> Shows you how to start
handling database change by creating a version 2 of the schema.  We also create
more complex fixtures and customize the migration.

=head2 STEP 4: Testing

L<DBIx::Class::Migration::Tutorial::Testing> shows you how to write some simple
test cases for your database.

=head2 STEP 5: Third Migration

L<DBIx::Class::Migration::Tutorial::ThirdMigration> explores a more complicated
migration and also reviews what to do if you need to run through a few iterations
of a migration before you are ready to set it in stone.

=head2 STEP 6: Migrations for Additional Databases

L<DBIx::Class::Migration::Tutorial::AddMySQL>. So far we've been building
migrations for just one database: SQLite.  Let's build migrations for MySQL


=head2 STEP 7: Using migrations with Catalyst

L<DBIx::Class::Migration::Tutorial::Catalyst> shows you how to use and customize
L<DBIx::Class::Migration> with L<Catalyst> for development and testing.

=head2 STEP 8: Conclusion

L<DBIx::Class::Migration::Tutorial::Conclusion> reviews some key concepts.

=head1 SEE ALSO

L<DBIx::Class::Migration>, L<DBIx::Class::Manual::Example>,
L<DBIx::Class::DeploymentHandler>, and L<DBIx::Class::Fixtures>.

=head1 AUTHOR

See L<DBIx::Class::Migration> for author information

=head1 COPYRIGHT & LICENSE

See L<DBIx::Class::Migration> for copyright and license information

=cut



( run in 0.605 second using v1.01-cache-2.11-cpan-71847e10f99 )