Skip to content

Commit

Permalink
Make sure to drop the foreign key before dropping the column
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed May 20, 2015
1 parent 5cddacd commit c9098df
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -25,6 +25,8 @@ public function up()
public function down()
{
Schema::table('inventories', function (Blueprint $table) {
$table->dropForeign('inventories_parent_id_foreign');

$table->dropColumn('parent_id');
});
}
Expand Down

0 comments on commit c9098df

Please sign in to comment.