Anego - The database migration utility as our elder sister.
# show status $ anego status # migration $ anego migrate $ anego migrate revision 1fdc91 # diff $ anego diff $ anego diff revision 1fdc91
IT'S STILL IN DEVELOPMENT PHASE. I have not written document and test script yet.
Anego is database migration utility.
# .anego.pl +{ "connect_info" => ["dbi:mysql:database=myapp;host=localhost", "root"], "schema_class" => "MyApp::DB::Schema", }
You can declare of the schema using DBIx::Schema::DSL:
package MyApp::DB::Schema; use strict; use warnings; use DBIx::Schema::DSL; create_table 'author' => columns { integer 'id', primary_key, auto_increment; varchar 'name', unique; }; create_table 'module' => columns { integer 'id', primary_key, auto_increment; varchar 'name'; text 'description'; integer 'author_id'; add_index 'author_id_idx' => ['author_id']; belongs_to 'author'; };
Copyright (C) papix.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
papix <mail@papix.net>
To install Anego, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Anego
CPAN shell
perl -MCPAN -e shell install Anego
For more information on module installation, please visit the detailed CPAN module installation guide.