How sql to create a unique index is something like this
//sql to add a unqique index
ALTER TABLE `user` ADD UNIQUE (
`email`
);
//sql to remove a unqique index
ALTER TABLE 'user' DROP INDEX email;
just use dropIndex () and remove the unique index.
username user, email, , . , / .
public function up()
{
$this->dropIndex('username', 'user');
}
public function down()
{
$this->createIndex('username', 'user', 'username', $unique = true );
}