要移除索引您必须指定索引名称,Laravel 默认有脉络可循的索引名称。简单地链接这些数据表与索引的字段名称和类型。举例如下: | 命令 | 功能描述 |
---|---|---|
$table->dropPrimary('users_id_primary'); | 从「users」数据表移除主键 | |
$table->dropUnique('users_email_unique'); | 从「users」数据表移除唯一索引 | |
$table->dropIndex('geo_state_index'); | 从「geo」数据表移除基本索引 |
Copyright©2023 编程论坛编程论坛| 浙ICP备2024059924号-1|
违法和不良信息举报电话:|举报邮箱:569242693@qq.com