1Schema::table('persons', function (Blueprint $table) {
2 $sm = Schema::getConnection()->getDoctrineSchemaManager();
3 $indexesFound = $sm->listTableIndexes('persons');
4
5 if(array_key_exists("persons_body_unique", $indexesFound))
6 $table->dropUnique("persons_body_unique");
7});
8