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

Remove foreign keys towards draft referrals #1455

Open
sldblog opened this issue Feb 6, 2023 · 0 comments
Open

Remove foreign keys towards draft referrals #1455

sldblog opened this issue Feb 6, 2023 · 0 comments

Comments

@sldblog
Copy link
Contributor

sldblog commented Feb 6, 2023

Short problem statement; why is this a problem?

Some tables link to referral as a foreign key, some to draft_referral

Link to different approaches

From 6 Feb 2023:

image

Do you have a proposed solution? Why?

Populate these tables when the referral is sent and rewrite their foreign keys against referral.

  1. Live referrals should not reference draft_referral table.
  2. Our overall goal is to allow draft_referrals to be cleaned regularly. We do not want to retain drafts that do not get sent within e.g. ten working days.
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

1 participant