Skip to content

IDENTITY opt-in config Issue: #233 #715

Open
Jatanasio wants to merge 4 commits intoash-project:mainfrom
Jatanasio:redo-pr
Open

IDENTITY opt-in config Issue: #233 #715
Jatanasio wants to merge 4 commits intoash-project:mainfrom
Jatanasio:redo-pr

Conversation

@Jatanasio
Copy link
Contributor

Contributor checklist

Leave anything that you believe does not apply unchecked.

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

Refactored some of the functions to opt-in to using identity columns using the identity_columns_default DSL rather than simply using serial/bigserial columns. Also created migration tests to test opting for identity columns in various scenarios as well as falling back to serial when identity is not opted into.

@zachdaniel
Copy link
Contributor

I like this! The one thing I would like to change is that instead of storing at the top level of the snapshot, we should store within each attribute by overriding the type. We can set the type to :identity at the attribute level which should then automatically make its way into the migrations.

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