mirror of
https://gitee.com/wonderful-code/buildadmin
synced 2024-11-21 14:41:29 +00:00
fix:修复表索引 unique 设置失败的问题
This commit is contained in:
parent
5ee0ba3a5e
commit
13ab01422e
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user