Skip to content

Commit 27792ad

Browse files
authored
Merge pull request #60 from kresnasatya/safety-migration-rollback
feat: add safety migration rollback on rich_texts table
2 parents c2e2e1f + 15e89ff commit 27792ad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

database/migrations/create_rich_texts_table.php.stub

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,9 @@ return new class extends Migration {
1717
$table->unique(['field', 'record_type', 'record_id']);
1818
});
1919
}
20+
21+
public function down()
22+
{
23+
Schema::dropIfExists('rich_texts');
24+
}
2025
};

0 commit comments

Comments
 (0)