Commit f5b8b3c1 authored by Shakarim Sapa's avatar Shakarim Sapa

- Добавлена миграция для нового поля template_id

parent 879aac7c
<?php
use yii\db\Migration;
class m160324_144228_add_template_column_to_co_content extends Migration
{
public function up()
{
$this->addColumn(
'co_content',
'template_id',
$this->integer(11)->defaultValue(null)
);
$this->addForeignKey(
'fk_co_content_template',
'co_content', 'template_id',
'message_template', 'id'
);
}
public function down()
{
$this->dropForeignKey(
'fk_co_content_template',
'co_content'
);
$this->dropColumn(
'co_content',
'template_id'
);
}
}
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