XF 2.1 What order are non-versioned upgrade steps executed on?

Jaxel

Well-known member
Lets say I have a series of upgrade steps:
Code:
upgradeStep1()
upgrade2000Step1()
upgrade2100Step1()
upgrade2110Step1()

Will this do upgradeStep1 > upgrade2000Step1 > upgrade2100Step1 > upgrade2110Step1?

I would like upgradeStep1 to be last in the execution. What would be the best way to accomplish this?
 
If you're using the StepRunnerUpgradeTrait, it only supports versioned steps:
Code:
if (preg_match('/^upgrade(\d+)Step(\d+)$/', $method->name, $match))

If you want to support anything else you'd have to build in custom support, though I'm confused about the use case and what you're trying to achieve.
 
If you're using the StepRunnerUpgradeTrait, it only supports versioned steps:
Code:
if (preg_match('/^upgrade(\d+)Step(\d+)$/', $method->name, $match))

If you want to support anything else you'd have to build in custom support, though I'm confused about the use case and what you're trying to achieve.
I want some code that runs after every upgrade.
 
This is part of the AbstractSetup class via the postUpgrade method. You'd just override that.
 
Back
Top Bottom