NAME

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

VERSION

version 1.105

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. Use --check to check whether the current checksum is at the end of the changes tree, without applying changes. It exits with a failure status if changes remain or no checksum matches. Changes that do not alter the checksum are treated as unapplied, since their application cannot be determined from the checksum alone.

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

  • Klaus Ita

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 - 2026 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.