<?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 yii\db\Migration;

class m151023_063540_user_stat extends Migration
{
    public function up()
    {
        $this->execute('ALTER TABLE {{user_stat}} ADD COLUMN [[total_kd_battle_count]] BIGINT NOT NULL DEFAULT 0');
    }

    public function down()
    {
        $this->execute('ALTER TABLE {{user_stat}} DROP COLUMN [[total_kd_battle_count]]');
    }
}
