Cookie Consent by Free Privacy Policy Generator Rollback a Specific Migration in laravel 12 - Programmieren - IT Experten Blog von Team IT Security Zum Hauptinhalt springen
tsecurity.de LIVE
🔍
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen
🪟 Windows TippsHP Announces Three Nvidia RTX Spark-Powered PCs(05.09.2026 um 15:34 Uhr)
🔧 AI Nachrichten GenAI Workflows für Social Media Content(02.09.2026 um 14:00 Uhr)
🪟 Windows TippsDJ Master(05.09.2026 um 16:02 Uhr)
🪟 Windows Tipps<b>Windows</b> - IT-Administrator.de(04.09.2026 um 04:17 Uhr)
🪟 Windows TippsHP Announces Three Nvidia RTX Spark-Powered PCs(05.09.2026 um 15:34 Uhr)
🔧 AI Nachrichten GenAI Workflows für Social Media Content(02.09.2026 um 14:00 Uhr)
🪟 Windows TippsDJ Master(05.09.2026 um 16:02 Uhr)
🪟 Windows Tipps<b>Windows</b> - IT-Administrator.de(04.09.2026 um 04:17 Uhr)

Programmieren
⚡ tsecurity.de Intelligence

Rollback a Specific Migration in laravel 12

Autor: itstuffsolutiotions.io 24.07.2025 um 15:58 Uhr 2 Min. Lesezeit Programmieren (15 Beiträge)

<p>In this article titled <strong>&ldquo;Laravel 12: How to Rollback a Specific Migration&rdquo;</strong>, I&rsquo;ll guide you through the process of rolling back a particular migration in a Laravel 12 application &mdash; explained step by step with a practical example. The method shown here is also compatible with earlier Laravel versions including Laravel 7, 8, 9, 10, and 11.</p>

<p>In this guide, you&#39;ll discover how to:</p>

<p>&nbsp;</p>

<ul>
<li><strong>Rollback </strong>a specific migration file</li>
<li><strong>Re-run </strong>a selected migration after rollback</li>
<li>Rollback a specific migration and run database <strong>seeding</strong></li>
</ul>

<h2>Rollback a Specific Migration</h2>

<p>Rather than executing a full<strong> migrate:rollback</strong>&mdash;which reverts the entire last batch of migrations (potentially affecting multiple files)&mdash;Laravel provides a way to <strong>rollback </strong>just one specific migration by using the<strong> --path </strong>option.</p>

<pre>
<code>php artisan migrate:rollback-- path=database/migrations/2025_07_14_134057_create_tests_table.php</code></pre>

<p>🔔<strong> Important:</strong> Ensure there is no space between --path= and the migration file path. Adding a space will result in a command <strong>error</strong>.</p>

<h2>Rollback a Specific Migration And Re-Migrate</h2>

<p>There are situations where you might need to rollback and instantly re-run a specific migration&mdash;such as after correcting a mistake or updating the table schema.</p>

<p>Laravel makes this easy by allowing the use of the <strong>--path</strong> option with the <strong>migrate:refresh</strong> command to target a specific migration file.</p>

Werbefrei & vorab lesen — mit dem Fast-Pass

Eilmeldungen vor allen anderen · keine Werbung · exklusive KI-Insights · alle Feeds als Export.

Fast-Pass sichern
Verifizierte Quellen Live Redaktion KI-kuratierte Insights
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
📂 News ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

↗ Original-Quelle
Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-75757 | Reliance on Cookies without Validation and Integrity Checking vulnerabil…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
🤖
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
👥 Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
📡 Aktivitäten deiner Analysten
lädt…
💡 Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

🔥 Heiß diskutierte Einreichungen