[freeside-commits] branch FREESIDE_3_BRANCH updated. 23352f73d1bb474d2d9dc44acbef3398669d1462
Ivan Kohler
ivan at freeside.biz
Wed Sep 7 16:50:40 PDT 2022
The branch, FREESIDE_3_BRANCH has been updated
via 23352f73d1bb474d2d9dc44acbef3398669d1462 (commit)
from f7ac78ae16c5908575db01b5c7e047477035be6a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 23352f73d1bb474d2d9dc44acbef3398669d1462
Author: Ivan Kohler <ivan at freeside.biz>
Date: Wed Sep 7 16:50:39 2022 -0700
fix password_history upgrade on new DBs
diff --git a/FS/FS/password_history.pm b/FS/FS/password_history.pm
index 13d16010d..1915a2185 100644
--- a/FS/FS/password_history.pm
+++ b/FS/FS/password_history.pm
@@ -173,6 +173,7 @@ sub _upgrade_schema {
push @where, "
( $fk IS NOT NULL AND NOT EXISTS(SELECT 1 FROM $table WHERE $table.$key = $fk) )";
}
+ return '' unless @where;
my @recs = qsearch({
'table' => 'password_history',
'extra_sql' => ' WHERE ' . join(' AND ', @where),
-----------------------------------------------------------------------
Summary of changes:
FS/FS/password_history.pm | 1 +
1 file changed, 1 insertion(+)
More information about the freeside-commits
mailing list