change to the data directly automatically with mig env use
[migration-tools.git] / mig-bin / mig-sql
diff --git a/mig-bin/mig-sql b/mig-bin/mig-sql
deleted file mode 100755 (executable)
index bbe564f..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/usr/bin/perl -w
-###############################################################################
-=pod
-
-=head1 NAME
-
-mig-sql 
-
-A wrapper around the psql command.  At some point the plan is to shove mig-tracked variables into psql sessions.
-
-=head1 SYNOPSIS
-
-B<mig-sql> [arguments...]
-
-=cut
-
-###############################################################################
-
-use strict;
-use Switch;
-use Env qw(
-    HOME PGHOST PGPORT PGUSER PGDATABASE MIGSCHEMA
-    MIGBASEWORKDIR MIGBASEGITDIR MIGGITDIR MIGWORKDIR
-    BIBSTART
-);
-use Pod::Usage;
-use DBI;
-use Cwd 'abs_path';
-use FindBin;
-my $mig_bin = "$FindBin::Bin/";
-use lib "$FindBin::Bin/";
-use Mig;
-
-my @MYARGV = (
-     'psql'
-    ,'options=--search_path=' . $MIGSCHEMA . ',public,evergreen,pg_catalog'
-    ,'-vmigschema=' . $MIGSCHEMA
-);
-if (defined $BIBSTART) {
-    push @MYARGV, '-vbibstart=' . $BIBSTART;
-}
-# TODO inject more mig-tracked variables here
-
-system(@MYARGV, @ARGV);
-
-exit 0;
-