go-gormigrate / gormigrate

Minimalistic database migration helper for Gorm ORM
https://pkg.go.dev/github.com/go-gormigrate/gormigrate/v2
MIT License
1.05k stars 99 forks source link

Add 'Applied' field to migration table to record timestamp when migration is run #222

Open dmnyu opened 2 months ago

dmnyu commented 2 months ago

I don't know if this would be wanted, as it seems to be common practice to put some kind of ad hoc timestamp in the ID field of a migration. I added an 'applied' field to the migrations interface here ,https://github.com/dmnyu/gormigrate/tree/applied-field, that records a RFC3339 timestamp of when the migration is applied to a database. Happy to open PR if this is wanted.