- Добавлена миграция добавляющая новое поле в таблицу users

parent f6a4d2ad
<?php
use yii\db\Migration;
class m160318_140227_add_delivery_date_column_to_user_table extends Migration
{
public function up()
{
$this->addColumn(
'users',
'delivery_date',
$this->date()->defaultValue(null)
);
}
public function down()
{
$this->dropColumn(
'users',
'delivery_date'
);
}
}
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