From 15e89ff3d62a4f8b4bf14ebe1cb49020c9cc0ae3 Mon Sep 17 00:00:00 2001 From: Kresna Satya Date: Tue, 29 Oct 2024 11:53:44 +0800 Subject: [PATCH] feat: add safety migration rollback on rich_texts table --- database/migrations/create_rich_texts_table.php.stub | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/database/migrations/create_rich_texts_table.php.stub b/database/migrations/create_rich_texts_table.php.stub index 4da07d9..31eff54 100644 --- a/database/migrations/create_rich_texts_table.php.stub +++ b/database/migrations/create_rich_texts_table.php.stub @@ -17,4 +17,9 @@ return new class extends Migration { $table->unique(['field', 'record_type', 'record_id']); }); } + + public function down() + { + Schema::dropIfExists('rich_texts'); + } };