summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2016-01-28 13:45:56 -0800
committerMark Wells <mark@freeside.biz>2016-01-28 13:46:19 -0800
commit5ff16520adf5c564a053875165418fe32abf1a5c (patch)
tree610226bcf6ec090dc8e8812db6bc8854a4e0f287
parent2f3fd5cbfdec082d780f79b1ff9fab07a0c832ce (diff)
invalidate foreign key cache during reload_dbdef, fixes upgrade problem on #25536
-rw-r--r--FS/FS/Schema.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm
index 63276b7e7..029dbe10c 100644
--- a/FS/FS/Schema.pm
+++ b/FS/FS/Schema.pm
@@ -56,6 +56,7 @@ sub reload_dbdef {
warn "[debug]$me re-using cached dbdef for $file\n" if $DEBUG;
}
$dbdef = $dbdef_cache{$file};
+ FS::Record::fk_methods_init();
}
=item dbdef