NAME

DBIx::SchemaChecksum::App::ApplyChanges - Apply changes based on current checksum

VERSION

version 1.104

DESCRIPTION

Apply all changes found in sqlsnippetdir based on the current checksum. For each file there will be a prompt asking if you want to apply the file. Use --no_prompt to always accept each change (useful for deployment scripts etc). Use --dry_run to run all changes, but do not apply them.

METHODS

apply_sql_snippets

$self->apply_sql_snippets( $starting_checksum );

Applies SQL snippets in the correct order to the DB. Checks if the checksum after applying the snippets is correct. If it isn't correct rolls back the last change (if your DB supports transactions...)

AUTHORS

  • Thomas Klausner <domm@plix.at>

  • Maroš Kollár <maros@cpan.org>

  • Klaus Ita <koki@worstofall.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 - 2021 by Thomas Klausner, Maroš Kollár, Klaus Ita.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.