<?php

use yii\db\Schema;
use yii\db\Migration;

class m151021_061831_alter__table__currency__timestamp__fields__to__date extends Migration
{
    public function up()
    {
    	$this->alterColumn('currency', 'created_at', 'datetime' );
    	$this->alterColumn('currency', 'updated_at', 'datetime' );
    }

    public function down()
    {
        echo "m151021_061831_alter__table__currency__timestamp__fields__to__date cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
