Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add references when adding/changing pg columns #239

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

jayvdb
Copy link
Collaborator

@jayvdb jayvdb commented Apr 4, 2024

I forgot this when doing #158

It works well when a migration is only doing one column add/change..
For larger inter-related migrations, the user will need to re-arrange the DDL to make pg happy. But at least with this PR they wont forget, and have the required DDL, albeit in the wrong order.

A lot of work is going to be needed to choice the best order of operations in order to correctly migrate and rollback, esp if there is data, i.e. #226

@jayvdb jayvdb force-pushed the pg-more-constraints branch from c693c05 to ed8f525 Compare April 4, 2024 16:24
@jayvdb jayvdb marked this pull request as ready for review April 4, 2024 16:53
@jayvdb jayvdb requested a review from Electron100 April 4, 2024 16:53
@jayvdb jayvdb merged commit 867633f into Electron100:master Apr 5, 2024
4 checks passed
@jayvdb jayvdb deleted the pg-more-constraints branch April 5, 2024 03:06
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