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

Unique constraint na InforequestEmail #355

Open
martinmacko47 opened this issue Feb 15, 2021 · 0 comments
Open

Unique constraint na InforequestEmail #355

martinmacko47 opened this issue Feb 15, 2021 · 0 comments

Comments

@martinmacko47
Copy link
Owner

martinmacko47 commented Feb 15, 2021

Pridaj UNIQUE constraint na InforequestEmail.email. Teda aby ziaden mail.Message sa nemohol priradit naraz viacerym inforequestom.

Doteraz sme mali taketo obmedzenie iba ako soft check v datachecks. Ale asi by bolo lepsie dany invariant zarucit priamo na urovni DB.

Po zmene potom budeme moct asi vyhodit datachecks z chcemvediet/apps/inforequests/models/inforequestemail.py, kedze po pridani constraintu by check mal byt vzdy OK. Ale pls pred zmazanim to over.

Tiez pls prejdi celu codebase, a zamysli sa, ci pridanie constraintu nieco niekde nepokazi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants