mozilla / fxa-oauth-server

OAuth server for Firefox Accounts
49 stars 40 forks source link

Drop foreign key constraints #611

Closed rfk closed 6 years ago

rfk commented 6 years ago

We have some on delete cascade foreign key constraints, but they're not providing much value and they're interfering with the operation of the gh-ost db migration tool. Per [1] and friends, we're going to drop them in prod in order to let the latest migration apply successfully. Let's also do that as an explicit migration here in the codebase to ensure consistency with what's in prod.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1495860#c9