From: Mark Wells Date: Thu, 28 Jan 2016 21:45:56 +0000 (-0800) Subject: invalidate foreign key cache during reload_dbdef, fixes upgrade problem on #25536 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=bbc082b0295335839b6e52ebc46941905165f202;p=freeside.git invalidate foreign key cache during reload_dbdef, fixes upgrade problem on #25536 --- diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm index 384944318..3ecbea3da 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