Commit 0fa5a43b authored by andre's avatar andre

транслиты для тнгов

parent 404cc6da
<?php
use yii\db\Migration;
use yii\db\Schema;
/**
* Handles adding column to table `post_tag`.
*/
class m160623_085657_add_column_to_post_tag extends Migration
{
public function safeUp()
{
$this->addColumn('posts_tags', 'translit', Schema::TYPE_STRING . '(255) NOT NULL AFTER `name`');
}
public function safeDown()
{
$this->dropColumn('posts_tags', 'translit');
}
}
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