XF 2.1 Query does not work in my Setup.php (upgrade step)

Jean-Baptiste

Well-known member
Hello,

I have the following setup file :

Code:
<?php

namespace Addon\Import;

use XF\AddOn\AbstractSetup;
use XF\AddOn\StepRunnerInstallTrait;
use XF\AddOn\StepRunnerUninstallTrait;
use XF\AddOn\StepRunnerUpgradeTrait;
use XF\Db\Schema\Create;
use XF\Db\Schema\Drop;

class Setup extends AbstractSetup
{
    use StepRunnerInstallTrait;
    use StepRunnerUpgradeTrait;
    use StepRunnerUninstallTrait;

    public function upgrade100010Step1()
    {
        $this->query("query example...");
    }
}

I am updating the addon.json file saying the version ID is now 100009, then I sync the changes, release the addon, and install it on an other the forum.
But my queries are not executed...

Any ideas why ?

Regards
 
Top Bottom