mirror of
https://gitee.com/wonderful-code/buildadmin
synced 2024-11-23 15:48:42 +00:00
17 lines
327 B
PHP
17 lines
327 B
PHP
<?php
|
|
|
|
use think\migration\Migrator;
|
|
|
|
class Version201 extends Migrator
|
|
{
|
|
public function up(): void
|
|
{
|
|
$user = $this->table('user');
|
|
if ($user->hasIndex('email')) {
|
|
$user->removeIndexByName('email')
|
|
->removeIndexByName('mobile')
|
|
->update();
|
|
}
|
|
}
|
|
}
|