mozilla / fxa-oauth-server

OAuth server for Firefox Accounts
48 stars 40 forks source link

fix(db): Restore foreign key constraints on core tables. #623

Closed rfk closed 5 years ago

rfk commented 5 years ago

The migration removing these constraints did not stick in production, so we're reverting it here in code to keep things consistent.

Connects to https://github.com/mozilla/fxa-auth-server/issues/2695

rfk commented 5 years ago

@jrgm does this match what was done in production?

jrgm commented 5 years ago

@jrgm does this match what was done in production?

Yes, that was what done in production for the tokens and codes tables, but not for refreshTokens. I'll restore that FK on refreshTokens on (my) Monday.