summaryrefslogtreecommitdiff
path: root/bin/freeside-migrate-events
diff options
context:
space:
mode:
authorivan <ivan>2007-09-12 04:20:14 +0000
committerivan <ivan>2007-09-12 04:20:14 +0000
commit4710f8619a349c0d7edb9f8c0432d843b9effa91 (patch)
tree15ccd1197c1d440cb1dd35346eb1c2e634734711 /bin/freeside-migrate-events
parent0f96c028d39c22135e541fe8307441b100ce9a84 (diff)
fix for freeside-migrate-events bug that would throw a duplicate row error instead of completing the migration
Diffstat (limited to 'bin/freeside-migrate-events')
-rw-r--r--bin/freeside-migrate-events5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/freeside-migrate-events b/bin/freeside-migrate-events
index 74732b7f2..2ec291893 100644
--- a/bin/freeside-migrate-events
+++ b/bin/freeside-migrate-events
@@ -103,7 +103,7 @@ foreach my $part_bill_event (
'eventpart' => $part_event->eventpart,
'conditionname' => 'cust_bill_age'
};
- $error = $payby->insert( 'age' => ($part_bill_event->seconds/86400 ).'d' );
+ $error = $age->insert( 'age' => ($part_bill_event->seconds/86400 ).'d' );
die $error if $error;
}
@@ -127,7 +127,8 @@ foreach my $part_bill_event (
};
my $cerror = $cust_event->insert;
- die "error inserting cust_event: $cerror\n" if $cerror;
+ #die "error inserting cust_event: $cerror\n" if $cerror;
+ warn "error inserting cust_event: $cerror\n" if $cerror;
#my $dcerror = $cust_bill_event->delete;
#die "error removing cust_bill_event: $dcerror\n" if $dcerror;