[freeside-commits] branch master updated. 691de38ac2ca6c54b37feb50e1332bab6268773f

Ivan Kohler ivan at freeside.biz
Wed Sep 7 16:50:33 PDT 2022


The branch, master has been updated
       via  691de38ac2ca6c54b37feb50e1332bab6268773f (commit)
      from  b3b6d0750030d08032756ad4a6969e193a65a928 (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 691de38ac2ca6c54b37feb50e1332bab6268773f
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Sep 7 16:50:33 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