How to make field enum migration yii2
<p>I make field ENUM and the result is error when I use <code>yii migrate/up</code> on CMD windows.</p>

<pre><code>public function up()
{
    $tableOptions = null;
    if ($this-&gt;db-&gt;driverName === 'mysql') {
        $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB';
    }

    $this-&gt;createTable('{{%user_social_media}}', [
        'social_media' =&gt; $this-&gt;ENUM('facebook', 'google', 'twitter', 'github'),
        'id' =&gt; $this-&gt;primaryKey(),
        'username' =&gt; $this-&gt;string(),
        'user_id' =&gt; $this-&gt;integer(11),
        'created_at' =&gt; $this-&gt;integer(11),
        'updated_at' =&gt; $this-&gt;integer(11),            
       ], $tableOptions);
}
</code></pre>

<p><img src="https://i.stack.imgur.com/cbJoW.png" alt="When I migrate/up error"></p>