Skip to content

Commit

Permalink
feat: add safety migration rollback on rich_texts table
Browse files Browse the repository at this point in the history
  • Loading branch information
kresnasatya authored Oct 29, 2024
1 parent c2e2e1f commit 15e89ff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions database/migrations/create_rich_texts_table.php.stub
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@ return new class extends Migration {
$table->unique(['field', 'record_type', 'record_id']);
});
}

public function down()
{
Schema::dropIfExists('rich_texts');
}
};

0 comments on commit 15e89ff

Please sign in to comment.