volatiletech / sqlboiler

Generate a Go ORM tailored to your database schema.
BSD 3-Clause "New" or "Revised" License
6.56k stars 533 forks source link

templates: conditionally set created automatic column #1385

Closed glerchundi closed 1 month ago

glerchundi commented 1 month ago

This change takes into account if the the created automatic column was set by the user in the update operation. If set, it will set the one provided by the user. If not set, it will set to the default "created_at" value.

glerchundi commented 1 month ago

Thanks @stephenafamo! 🙏!