getTable('mounts'); if ($table->hasIndex('mounts_user_root_index')) { $table->dropIndex('mounts_user_root_index'); // new index gets added with "add missing indexes" } return $schema; } }