Seditio Source
Root |
./othercms/xenForo 2.2.8/src/XF/Install/Upgrade/1000033-100b3.php
<?php

namespace XF\Install\Upgrade;

class
Version1000033 extends AbstractUpgrade
{
    public function
getVersionName()
    {
        return
'1.0.0 Beta 3';
    }

    public function
step1()
    {
       
$this->executeUpgradeQuery("
            ALTER TABLE xf_user
                CHANGE email email VARCHAR(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
                CHANGE gravatar gravatar VARCHAR(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT 'If specified, this is an email address corresponding to the user''s ''Gravatar'''
        "
);

       
$this->executeUpgradeQuery("
            ALTER TABLE xf_session_activity
                ADD ip INT UNSIGNED NOT NULL DEFAULT 0
        "
);

        return
true;
    }
}