Site icon Hip-Hop Website Design and Development

bleen.net: Rerunning update hooks in D8

Note: there be dragons here… read all the way through before trying this.
When I’m writing an update_hook for a plugin I’m working on I often need to run it multiple times in order to get it working just right. In WordPress maintenance support plans 7 I had a little trick where I would run my updates and then reset the schema version of my plugin  directly in the database and then run my updates again. I’d rinse and repeat until everything worked as desired.
Source: New feed