Seditio Source
Root |
./othercms/xenForo 2.2.8/src/XF/Install/Upgrade/2020035-220b5.php
<?php

namespace XF\Install\Upgrade;

use
XF\Db\Schema\Alter;

class
Version2020035 extends AbstractUpgrade
{
    public function
getVersionName()
    {
        return
'2.2.0 Beta 5';
    }

    public function
step1()
    {
       
// duplication of 2020010 (step 3) to pick up users who may still have the old schema

       
$this->alterTable('xf_option', function (Alter $table)
        {
           
$table->changeColumn('advanced')->setDefault(0);
        });

       
$this->alterTable('xf_option_group', function (Alter $table)
        {
           
$table->changeColumn('advanced')->setDefault(0);
        });
    }
}