Skip to content

Commit dab114d

Browse files
Update 2021_05_28_121021_add_index_key_people_table.php
1 parent 6aedece commit dab114d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/migrations/2021_05_28_121021_add_index_key_people_table.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,13 @@ public function up()
3030
*/
3131
public function down()
3232
{
33+
3334
if (Schema::hasTable('people')) {
3435
Schema::table('people', function (Blueprint $table) {
3536
if (Schema::hasColumn('people', 'uid')) {
3637
$table->dropIndex(['id', 'uid']);
3738
}
3839
});
40+
}
41+
}
3942
}

0 commit comments

Comments
 (0)