0

我用 laravel 创建了一个索引index()

$table->index(['group_tasks_outline_agreement_uuid'], 'gt_oa_uuid');

我已尝试删除此 idexdropIndex()

$table->dropIndex(['group_tasks_outline_agreement_uuid']);
or
$table->dropIndex(['gt_oa_uuid']);

它显示错误消息:语法错误或访问冲突:1091 Can't DROP INDEX hps_purchase_order_hps_purchase_order_uuid_index; 检查它是否存在

4

1 回答 1

0

它应该是 $table->index(['group_tasks_outline_agreement_uuid'], 'group_tasks_outline_agreement_gt_oa_uuid_index');

于 2020-11-19T01:58:34.650 回答