Skip to content

Conversation

@siassaj
Copy link
Contributor

@siassaj siassaj commented Sep 26, 2025

NOTE: I haven't included any testing as it's unclear to me that there exist any tests for default constraint generators. I noticed that at least one previous patch applied to this region didn't include tests. LMK if I should do anything differently.

AshPostgres.Timestamptz creates a pg column of type 'timestamptz', however the existing default behaviour was to implement the default constraint as a 'timestamp' type. Effectively 'now()::timestamptz' was converted to 'timestamp' then back to 'timestamptz'. This has been changed to 'now()'.

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

AshPostgres.Timestamptz creates a pg column of type 'timestamptz', however the
existing default behaviour was to implement the default constraint as a
'timestamp' type. Effectively 'now()::timestamptz' was converted to 'timestamp'
then back to 'timestamptz'. This has been changed to 'now()'.
@zachdaniel zachdaniel merged commit 36ccc75 into ash-project:main Sep 27, 2025
@zachdaniel
Copy link
Contributor

🚀 Thank you for your contribution! 🚀

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