X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=blobdiff_plain;f=mig;h=3fa227ff80c6dd0c218194cbe8993e9733d06183;hp=ea6cfd1e8078a4ab7d506c9159b7e1ef4a09d750;hb=51093424e0af8cb967e2252213f7a45f54d61e60;hpb=f9201dc2d1699f5161e5e29690a1634e8063bb85 diff --git a/mig b/mig index ea6cfd1..3fa227f 100755 --- a/mig +++ b/mig @@ -63,6 +63,8 @@ Using B should go something like this: =item mig write_prod patrons.tsv # creates a .sql file for pushing the staging data into production +=item mig reporter --analyst "Foo Fooer" --report_title "Foo Load Analysis" #creates an asciidoc report + =back =head1 COMMANDS @@ -226,6 +228,31 @@ or for all mapped files if no file is specified. Generates _prod.sql for the specified linked and mapped file, or all such files if no file is specified. +=item B [arguments...] + +A wrapper around the psql command. At some point the plan is to shove mig-tracked variables into psql sessions. + +=item B --analyst "Analyst Name" --report_title "Report Title" + +Generates an asciidoc file in the git working directory that can be converted to +any appropriate format. The analyst and report parameters are required. + +Optional parameters are : + +--added_page_title and --added_page_file + +If one is used both must be. The added page file can be plain text or asciidoc. This +adds an extra arbitrary page of notes to the report. + +--tags + +This will define a set of tags to use, if not set it will default to Circs, +Holds, Actors, Bibs, Assets & Money. + +--reports_xml + +Allows you to override the default evergreen_staged_report.xml in the mig-xml folder. + =back =cut @@ -273,6 +300,10 @@ switch($ARGV[0]) { Mig::die_if_no_env_migschema(); standard_invocation(@ARGV); } + case "reporter" { + Mig::die_if_no_env_migschema(); + standard_invocation(@ARGV); + } case "remove" { Mig::die_if_no_env_migschema(); standard_invocation(@ARGV); @@ -317,6 +348,10 @@ switch($ARGV[0]) { Mig::die_if_no_env_migschema(); standard_invocation(@ARGV); } + case "sql" { + Mig::die_if_no_env_migschema(); + standard_invocation(@ARGV); + } case "map" { Mig::die_if_no_env_migschema(); }