Commit c5a41876 authored by Shakarim Sapa's avatar Shakarim Sapa

- Добавлена миграция для таблицы расписания рассылок

parent 98058a9e
<?php
use yii\db\Migration;
use \yii\db\Schema;
class m160204_115214_add_schedule_table extends Migration
{
// Use safeUp/safeDown to run migration code within a transaction
public function safeUp()
{
$this->createTable(
'trigger_schedule',
[
'id' => Schema::TYPE_PK,
'sended' => Schema::TYPE_BOOLEAN.' DEFAULT 0 NOT NULL',
'checked' => Schema::TYPE_BOOLEAN.' DEFAULT 0 NOT NULL',
'message' => Schema::TYPE_TEXT.' NOT NULL',
'email' => Schema::TYPE_STRING.' NOT NULL',
'time' => Schema::TYPE_DATETIME,
'date_create' => Schema::TYPE_DATETIME
]
);
}
public function safeDown()
{
$this->dropTable(
'trigger_schedule'
);
}
}
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