for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace hauntd\vote\migrations;
use Yii;
/**
* @author Alexander Kononenko <[email protected]>
* @package hauntd\vote\migrations
* @property \hauntd\vote\Module $module
*/
class Migration extends \yii\db\Migration
{
* @var string
protected $tableOptions;
* @inheritdoc
public function init()
parent::init();
$this->tableOptions = null;
if (Yii::$app->db->driverName == 'mysql') {
$this->tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB';
}