summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2017-01-25 11:28:27 -0800
committerIvan Kohler <ivan@freeside.biz>2017-01-25 11:28:27 -0800
commitd2485c6fa278d7a4a1c940605816013f41d1f7e0 (patch)
tree1a984ed7e9d71f628ad0886b9f3f2397a4f971fa
parent3653b9063c8114a1977234bd0957593009c5d577 (diff)
no need for fix for #74270 in 5.x, FK enforcement was strict in 4.x
-rw-r--r--FS/FS/cust_refund.pm13
1 files changed, 0 insertions, 13 deletions
diff --git a/FS/FS/cust_refund.pm b/FS/FS/cust_refund.pm
index 2d5b3aaae..12ab0d693 100644
--- a/FS/FS/cust_refund.pm
+++ b/FS/FS/cust_refund.pm
@@ -472,19 +472,6 @@ sub unapplied_sql {
}
-sub _upgrade_schema {
- #my ($class, %opts) = @_;
-
- my $sql = 'UPDATE cust_refund SET source_paynum = NULL
- WHERE source_paynum IS NOT NULL
- AND NOT EXISTS ( SELECT 1 FROM cust_pay
- WHERE paynum = cust_refund.source_paynum )
- ';
- my $sth = dbh->prepare($sql) or die dbh->errstr;
- $sth->execute or die $sth->errstr;
- '';
-}
-
# Used by FS::Upgrade to migrate to a new database.
sub _upgrade_data { # class method
my ($class, %opts) = @_;