Skip to content

Commit

Permalink
Remove unnecessary index creation
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Apr 30, 2024
1 parent b1aaa18 commit 71a406e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions classes/migration/upgrade/v3_4_0/I6093_AddForeignKeys.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ public function up(): void

Schema::table('sections', function (Blueprint $table) {
$table->foreign('review_form_id', 'sections_review_form_id')->references('review_form_id')->on('review_forms')->onDelete('set null');
$table->index(['review_form_id'], 'sections_review_form_id');

$table->foreign('journal_id', 'sections_journal_id')->references('journal_id')->on('journals')->onDelete('cascade');
});

Expand Down

0 comments on commit 71a406e

Please sign in to comment.