DB::SQL::Migrations - apply database migrations via scripts in a directory
use DB::SQL::Migrations; my $migrator = DB::SQL::Migrations->new( dbh => $some_db_handle, migrations => $some_path, ) $migrator->create_migrations_table(); #creates schema table if it doesn't exist $migrator->apply();
Run a number of small SQL scripts
https://github.com/jontaylor/DB-SQL-Migrations
Adam Omielan, <adam@assure24.com> Jonathan Taylor, <jon@stackhaus.com>
Copyright (C) 2012 by Jonathan Taylor
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.2 or, at your option, any later version of Perl 5 you may have available.
To install DB::SQL::Migrations, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DB::SQL::Migrations
CPAN shell
perl -MCPAN -e shell install DB::SQL::Migrations
For more information on module installation, please visit the detailed CPAN module installation guide.