DoctrineMigrationsBundle icon indicating copy to clipboard operation
DoctrineMigrationsBundle copied to clipboard

Include notification of unexecuted migrations when a database exception occurs

Open benglass opened this issue 10 years ago • 2 comments

Something rails does is notify you when you have un-executed migrations. It might be nice to catch doctrine exceptions that might be due to this (or perhaps all doctrine exceptions) and add a note about executing migrations (if there are non-executed migrations). This would just be a helpful reminder to devs when they see an obscure SQL error about a missing db field to run migrations. Is there a way this bundle could hook into doctrine exceptions in the symfony debug component if it was installed so it could provide more information such as the suggestion to execute migrations?

benglass avatar Jun 04 '14 01:06 benglass

I would probably do that with a debug toolbar extension.

mikeSimonson avatar Dec 23 '15 21:12 mikeSimonson

:+1: @mikeSimonson Great idea - let's add a debug toolbar extension to notify doctrine migration issues: undone migrations, missing migration files

ghost avatar May 07 '16 16:05 ghost