<?php

/**
 * @copyright Copyright (C) 2015-2016 AIZAWA Hina
 * @license https://github.com/fetus-hina/stat.ink/blob/master/LICENSE MIT
 * @author AIZAWA Hina <hina@fetus.jp>
 */

use app\models\Region;
use yii\db\Migration;

class m160511_095107_fix_jp13th_splatfest extends Migration
{
    public function safeUp()
    {
        $this->update(
            'splatfest',
            ['name' => 'ツナマヨネーズ vs 紅しゃけ'],
            [
                'region_id' => Region::findOne(['key' => 'jp'])->id,
                'order' => 13,
            ],
        );
    }

    public function safeDown()
    {
    }
}
