Skip to content

Conversation

@jayvdb
Copy link
Collaborator

@jayvdb jayvdb commented Oct 31, 2025

We dont explicitly name the constraints at https://github.com/Electron100/butane/blob/master/butane_core/src/db/pg.rs#L681-L687

And it appears that pg auto naming of constraints uses the exact casing of the table.

@Electron100
Copy link
Owner

There's a fair bit of duplication in three places, might be an opportunity for a helper method.

@jayvdb
Copy link
Collaborator Author

jayvdb commented Nov 1, 2025

I also want to add tests for this.

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.

3 participants