#213 Migration sql syntax fix (#214)

This commit is contained in:
Aleksey Kazakov
2018-07-28 11:00:38 +03:00
committed by Lorenzo Milesi
parent bdf48cd2d9
commit ebf2e53d2c
2 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class m000000_000008_add_last_login_ip extends Migration
*/
public function safeUp()
{
$this->addColumn('{{%user}}', 'last_login_ip', Schema::TYPE_STRING . '(45) DEFAULT NULL AFTER last_login_at');
$this->addColumn('{{%user}}', 'last_login_ip', $this->string(45)->null()->after('last_login_at'));
}
/**