backdrop-contrib / facetapi

An abstracted facet API that can be used by various search backends.
GNU General Public License v2.0
0 stars 3 forks source link

Install file can't run updates #11

Closed oriolroger closed 10 months ago

oriolroger commented 1 year ago

Hi, I'm trying to install this module from a Drupal 7 migration, and the update.php script can't find a valid update function to run.

It seems that all the functions "facetapi_update_7xxx" in the facetapi.install file are not detected, and the good one (facetapi_update_1000) is never executed.

The returned error is: "facetapi module can not be updated. Its schema version is 0. Updates up to and including 7104 have been removed in this release. In order to update facetapi module, you will first need to upgrade to the last version in which these updates were available."

To get this update function running, I had to delete all the old ones ("facetapi_update_7xxx"), and run the update.php script again.

Thanks.

oriolroger commented 1 year ago

I've seen that just removing the function _facetapi_update_last_removed()_ solves the problem.

argiepiano commented 1 year ago

My guess is that you tried to upgrade a D7 site that was using an old Facet API module version, or a D7 site where the last update of Facet API had not run.

argiepiano commented 10 months ago

Closing on behalf of the @backdrop-contrib/bug-squad as there is no more activity here.