I encountered some strange behaviour when playing around with a custom (local) module and its version.
It seems like the latest module version, who has ever been installed, will remain in key_value > schema.

I uninstalled my module after I applied version 8.0.0.2 to it to "test" the update_hooks, which failed. Then trying to set 8.0.0.0 and re-enabling it again, didn't work. The old version number (.0.2) is still present in table "key_value" > schema and the desired update hooks won't run again.

Which flags in {module}.info.yml or any other configuration are related to the module version?
And how to update the schema value?

Another thing: I updated D8 from 8.0.0 to 8.0.1 by replacing the core, but no database updates were "tracked" within /update.php or "drush updb". But, there are updates in core modules, which didn't get applied @see file block_content.install > block_content_update_8001: there must be a field "block_content.revision_translation_affected", but it does not exist...

CommentFileSizeAuthor
#2 update_test_module.tar_.gz1015 bytesseppelM

Comments

seppelM created an issue. See original summary.

seppelM’s picture

StatusFileSize
new1015 bytes

Version: 8.0.1 » 8.0.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Version: 8.0.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Branches prior to 8.8.x are not supported, and Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

pameeela’s picture

Version: 8.9.x-dev » 9.1.x-dev
Status: Active » Postponed (maintainer needs more info)
Issue tags: -module development, -version +Bug Smash Initiative

@seppelM I know this was a really long time ago, but I see that you are still active on d.o.

I am triaging old tickets, but this is outside of my area of expertise. I wondered if you found a resolution for it? I'm not totally sure whether you were suggesting a specific bug, or asking some questions.

If you think there are aspects of this that are still unclear, perhaps we can fix with documentation? Otherwise feel free to close it, if you are thinking 'well this was 4 years ago, I can't remember' :)

pameeela’s picture

Version: 9.1.x-dev » 8.9.x-dev
pameeela’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)