阅读(332) (1)

移除索引

2016-02-24 15:53:00 更新
要移除索引您必须指定索引名称,Laravel 默认有脉络可循的索引名称。简单地链接这些数据表与索引的字段名称和类型。举例如下: 命令 功能描述
$table->dropPrimary('users_id_primary'); 从「users」数据表移除主键
$table->dropUnique('users_email_unique'); 从「users」数据表移除唯一索引
$table->dropIndex('geo_state_index'); 从「geo」数据表移除基本索引