Commit 8d9d76a7 authored by Shakarim Sapa's avatar Shakarim Sapa

- Добавлена миграция на добавление поля list_id в таблицу с расписанием...

- Добавлена миграция на добавление поля list_id в таблицу с расписанием рассылок. Поле необходимо чтобы получать статистику по письму.
parent 99ed8e7c
<?php
use yii\db\Migration;
use yii\db\Schema;
class m160205_131239_add_new_column_to_trigger_schedule extends Migration
{
public function safeUp()
{
$this->addColumn(
'trigger_schedule',
'list_id',
Schema::TYPE_INTEGER.' DEFAULT NULL'
);
}
public function safeDown()
{
$this->dropColumn(
'trigger_schedule',
'list_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