laziness idea from rhamby for the win
authorJason Etheridge <jason@equinoxinitiative.org>
Tue, 27 Aug 2019 21:51:22 +0000 (17:51 -0400)
committerJason Etheridge <jason@equinoxinitiative.org>
Tue, 27 Aug 2019 21:51:22 +0000 (17:51 -0400)
Signed-off-by: Jason Etheridge <jason@equinoxinitiative.org>

mig-bin/mig-stagebibs

index 0fa2b10..36ff241 100755 (executable)
@@ -61,6 +61,14 @@ my $batch;
 binmode STDIN, ':utf8';
 
 foreach my $arg (@ARGV) {
+    if ($arg eq '--auth') {
+        $base_table = 'authority_record_entry';
+        $stage_table = 'authority_record_entry_legacy';
+    }
+    if ($arg eq '--serial') {
+        $base_table = 'serial_record_entry';
+        $stage_table = 'serial_record_entry_legacy';
+    }
     if ($arg eq '--file') {
         $next_arg_is_file = 1;
         next;