Commit 04f3509e authored by Shakarim Sapa's avatar Shakarim Sapa

- Добавлено поле points в таблицу users (migrations)

parent 7675326b
<?php
use yii\db\Migration;
class m160410_074635_add_points_column_to_users extends Migration
{
public function up()
{
$this->addColumn(
'users',
'points',
$this->integer(11)->notNull()->defaultValue(0)
);
}
public function down()
{
$this->dropColumn(
'users',
'points'
);
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment