Last active
January 26, 2018 20:11
-
-
Save mparker17/71931d674eb99aa7c1f0d92744e777e2 to your computer and use it in GitHub Desktop.
Tell Drupal 8 about a .install file for a module that didn't have one before
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# @file | |
# Tell Drupal 8 about a .install file for a module that didn't have one before. | |
# | |
# Very rarely, a Drupal 8 module might end up without a row in the `key_value` | |
# table's `system.schema` collection. When this happens, Drupal won't load its | |
# `.install` file. As of Drupal 8.4, it is only possible to fix this manually. | |
# | |
# You can fix this manually with the following drush command, assuming | |
# $module_name is the name of the module. | |
# | |
drush -y ev "drupal_set_installed_schema_version($module_name, 8000);" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment