Skip to content

avoid generating uuidv7 by default, once postgres v18 is detected#793

Merged
zachdaniel merged 2 commits into
ash-project:mainfrom
lucavenir:main
Jul 12, 2026
Merged

avoid generating uuidv7 by default, once postgres v18 is detected#793
zachdaniel merged 2 commits into
ash-project:mainfrom
lucavenir:main

Conversation

@lucavenir

@lucavenir lucavenir commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

hi! I hope I won't do harm by trying to address the remaining bit of #672.

unfortunately, I'm not "happy" of the solution I'm submitting, here. but it's the best I've got so far. would LOVE some feedback.

here I'm introducing opts on AshPostgres.MigrationGenerator.AshFunctions, but opts litters the whole file - there's an area of effect larger than I've anticipated.
I iterated with other designs, e.g. using String.replace/3, avoiding littering the file - but I just didn't like it tbh.

I'd be happy to rework this if you have a better idea on how to tackle it.

Contributor checklist

Leave anything that you believe does not apply unchecked.

  • I accept the AI Policy, or AI was not used in the creation of this PR.
  • Bug fixes include regression tests
  • Chores
  • Documentation changes
  • Features include unit/acceptance tests
  • Refactoring
  • Update dependencies

@zachdaniel
zachdaniel merged commit 372f0e1 into ash-project:main Jul 12, 2026
25 of 35 checks passed
@zachdaniel

Copy link
Copy Markdown
Contributor

🚀 Thank you for your contribution! 🚀

@lucavenir

Copy link
Copy Markdown
Contributor Author

oh wow! that was fast <3 ty!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants