Skip to content

Commit

Permalink
Merge pull request #60 from kresnasatya/safety-migration-rollback
Browse files Browse the repository at this point in the history
feat: add safety migration rollback on rich_texts table
  • Loading branch information
tonysm authored Oct 31, 2024
2 parents c2e2e1f + 15e89ff commit 27792ad
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 27792ad

Please sign in to comment.