Want to know the latest state of the table by migrating Ravel

Asked 2 years ago, Updated 2 years ago, 46 views

If you keep adding and changing columns in Ravel migrations, the migration files will pile up more and more. Is there a way to check the status of the latest tables at a glance?

You can check the state of the table by accessing mysql directly or using the tool, but I hope there is an easy way to check it with the arisan command in laravel.

"Especially, I would appreciate it the most if you could confirm something like ""I added a lot of migration files, but in the end, it's the same as doing $table->string('name',500);."

"

laravel

2022-09-30 19:33

1 Answers

The raw SQL output can be achieved by tapping ./artisan schema:dump --prune, a new feature from Ravel 8.x, but there is no function to reverse Ravel's migration code at the moment.


2022-09-30 19:33

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.