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

Doc'd that PostgreSQL specifies CASCADE when dropping columns. #18066

Merged
merged 1 commit into from Apr 16, 2024

Conversation

shangxiao
Copy link
Contributor

@shangxiao shangxiao commented Apr 12, 2024

Submitting an admonition for a gotcha that a colleague spent some time on – they had some views go missing and were wondering what caused it.

I understand that CASCADE may be based on the fact that PG will abort any ALTER TABLE … DROP COLUMN statement if there are any objects dependent on that column 👍 Though probably not a bad idea to just clarify that here. (We could also adjust the wording to say this?)

@nessita nessita self-requested a review April 15, 2024 14:38
@nessita nessita merged commit f0d50a9 into django:main Apr 16, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants