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 column constraints #46

Merged
merged 4 commits into from
Mar 15, 2024
Merged

Add column constraints #46

merged 4 commits into from
Mar 15, 2024

Conversation

antidipyramid
Copy link
Collaborator

Overview

This PR adds constraints to most columns in both the script to initialize the database and during the import process for new cases. Though I did update scripts/initialize_db.sql, we'll have to manually add the constraints to the deployed database.

Connects #44

Notes

Ideally, court_case.hash should not be null (and be unique) for any row but since there are already some cases without a hash, I held off on adding that constraint for now. But all new cases should have hashes.

@antidipyramid antidipyramid marked this pull request as ready for review March 15, 2024 15:39
@antidipyramid antidipyramid requested a review from fgregg March 15, 2024 15:39
@antidipyramid antidipyramid merged commit 81ef266 into main Mar 15, 2024
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