go-co-op / gocron-gorm-lock

A gocron locker implementation using gorm
MIT License
9 stars 5 forks source link

Fixing bug with mysql and default null value for not null columns #39

Closed manuelarte closed 1 week ago

manuelarte commented 2 weeks ago

What does this do?

Which issue(s) does this PR fix/relate to?

Resolves #35

List any changes that modify/break current functionality

Have you included tests for your changes?

There are test that test the automigration gorm functionality for MySQL.

Did you document any new/modified functionality?

N/A

Notes

I removed the default:null gorm tags in the struct and added a BeforeCreate hook to check for the mandatory fields