Skip to content

Commit

Permalink
fix syntax of NULL to pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro Briosi committed May 23, 2017
1 parent fa19061 commit 79ac35b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrations/m150623_212711_fix_username_notnull.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function down()
if ($this->dbType == 'sqlsrv') {
$this->dropIndex('{{%user_unique_username}}', '{{%user}}');
}
$this->alterColumn('{{%user}}', 'username', $this->string(255), ' NULL');
$this->alterColumn('{{%user}}', 'username', $this->string(255). ' NULL');
if ($this->dbType == 'sqlsrv') {
$this->createIndex('{{%user_unique_username}}', '{{%user}}', 'username', true);
}
Expand Down

0 comments on commit 79ac35b

Please sign in to comment.