From 13ab01422e7962e784a043115327297439960a0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=99=E7=A0=81=E7=94=9F=E8=8A=B1?= <18523774412@qq.com> Date: Wed, 12 Jul 2023 19:01:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E8=A1=A8=E7=B4=A2?= =?UTF-8?q?=E5=BC=95=20unique=20=E8=AE=BE=E7=BD=AE=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- database/migrations/20230620180908_install.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/database/migrations/20230620180908_install.php b/database/migrations/20230620180908_install.php index ed7c478d..7049462d 100644 --- a/database/migrations/20230620180908_install.php +++ b/database/migrations/20230620180908_install.php @@ -58,7 +58,6 @@ class Install extends Migrator ->addColumn('updatetime', 'integer', ['limit' => 10, 'signed' => false, 'null' => true, 'default' => null, 'comment' => '创建时间']) ->addIndex(['username'], [ 'unique' => true, - 'type' => 'BTREE', ]) ->create(); } @@ -230,7 +229,6 @@ class Install extends Migrator ->addColumn('weigh', 'integer', ['comment' => '权重', 'default' => 0]) ->addIndex(['name'], [ 'unique' => true, - 'type' => 'BTREE', ]) ->create(); } @@ -448,15 +446,12 @@ class Install extends Migrator ->addColumn('createtime', 'biginteger', ['signed' => false, 'null' => true, 'default' => null, 'comment' => '创建时间']) ->addIndex(['username'], [ 'unique' => true, - 'type' => 'BTREE', ]) ->addIndex(['email'], [ 'unique' => true, - 'type' => 'BTREE', ]) ->addIndex(['mobile'], [ 'unique' => true, - 'type' => 'BTREE', ]) ->create(); }