mirror of
https://gitee.com/wonderful-code/buildadmin
synced 2024-11-21 22:55:36 +00:00
18 lines
343 B
PHP
18 lines
343 B
PHP
<?php
|
|
|
|
use think\migration\Migrator;
|
|
|
|
class Version201 extends Migrator
|
|
{
|
|
public function up()
|
|
{
|
|
parent::up();
|
|
$user = $this->table('user');
|
|
if ($user->hasIndex('email')) {
|
|
$user->removeIndexByName('email')
|
|
->removeIndexByName('mobile')
|
|
->update();
|
|
}
|
|
}
|
|
}
|