Commit aa2fdab7 authored by Shakarim Sapa's avatar Shakarim Sapa

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

parent 3f6144ad
<?php
use yii\db\Migration;
class m160216_145545_add_message_templates_table extends Migration
{
// Use safeUp/safeDown to run migration code within a transaction
public function safeUp()
{
$this->createTable(
'message_template',
[
'id' => $this->primaryKey(),
'name' => $this->string(255)->notNull(),
'template' => $this->text()->notNull(),
'created_at' => $this->dateTime()->notNull()
]
);
}
public function safeDown()
{
$this->dropTable(
'message_template'
);
}
}
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