Skip to content

Table name already created and having large data inside need only migration name insert into migrations table

Notifications You must be signed in to change notification settings

syedahnb/laravel-migrations-table-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Fix Missing Migration File Names in the Migrations Table Without Losing Data

Description: If you have a table that already exists with large amounts of data but the migration name is missing in the migrations table, this snippet will help you insert the migration names into the table.

Instructions:

Place the code in your routes/web.php file and adjust it according to your project requirements. Run the code only once to update the migrations table. Ensure you take a backup of the migrations table before executing the code. Warning: Use this snippet only if you're experienced and fully understand the implications. Improper use can lead to database inconsistencies.

This approach ensures the migrations table is standardized without affecting your existing data.

About

Table name already created and having large data inside need only migration name insert into migrations table

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages