X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=blobdiff_plain;f=kmig.d%2Fbin%2Fmig-init;fp=kmig.d%2Fbin%2Fkmig-init;h=8b207f88cad7409dbb80ffc94f7866084d0b242c;hp=7557168116e7b742097e129a63f767e82fa4741a;hb=483f7fb67b65840e55be6a04d64dc34c0e0ef87e;hpb=155eb9eac077ca803f75d1295e584e7012e1b883 diff --git a/kmig.d/bin/kmig-init b/kmig.d/bin/mig-init similarity index 76% rename from kmig.d/bin/kmig-init rename to kmig.d/bin/mig-init index 7557168..8b207f8 100755 --- a/kmig.d/bin/kmig-init +++ b/kmig.d/bin/mig-init @@ -4,17 +4,17 @@ =head1 NAME -kmig-init - This will add or recreate tracking tables for the B toolset -to the database specified by the current kmig environment. +mig-init - This will add or recreate tracking tables for the B toolset +to the database specified by the current mig environment. -In practice, you should invoke 'kmig env use schema_name' prior to calling +In practice, you should invoke 'mig env use schema_name' prior to calling B =head1 SYNOPSIS -B +B -B +B =cut @@ -51,14 +51,14 @@ exit 0; ############################################################################### sub loop_through_mig_sql_templates { - print "Looping through kmig.d/sql/init/ templates\n"; + print "Looping through mig.d/sql/init/ templates\n"; opendir my $dir, $mig_sql or die "Cannot open directory: $!"; my @files = sort readdir $dir; closedir $dir; foreach my $file (@files) { if ($file =~ /.sql$/) { print "executing $file:\n"; - system( $mig_bin . "kmig-sql", ('-e',"source $mig_sql$file") ) + system( $mig_bin . "mig-sql", ('-e',"source $mig_sql$file") ) } } }