framework icon indicating copy to clipboard operation
framework copied to clipboard

Add created_at Datetime Column To Migrations

Open nickescobedo opened this issue 4 months ago • 5 comments

Add executed_at date time column to the migrations table and fill it with the current time when the migration is run.

This sort of feature will be extremely helpful for larger teams to know when a particular migration ran. Having the date time will help with debugging if there is a bad migration. The time can then be used to correlate other things happening throughout the app or figure out who ran the migration.

Having access to more information without the user having to do anything seems like a win-win. Upgrading to Laravel 12 means they would have to add the column, but that is a simple migration and it's been done before when the ID column was added.

nickescobedo avatar Oct 11 '24 11:10 nickescobedo