View on
MetaCPAN
Thomas Klausner > DBIx-SchemaChecksum > DBIx::SchemaChecksum::App::ApplyChanges

Download:
DBIx-SchemaChecksum-1.102.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

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

VERSION ^

version 1.102

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 ^

COPYRIGHT AND LICENSE ^

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

syntax highlighting: