Revert "Add other missing uniqueness indices (#1426)"
Created by: n-b
On a de la Baddata en prod (et en demo). Pourtant je pensais avoir testé en local avec un dump.
Sur demo:
2021-05-06 15:13:04.917085910 +0200 CEST [postdeploy-6951] DETAIL: Key (human_id, territory_id)=(, 14) is duplicated. 2021-05-06 15:13:04.917084976 +0200 CEST [postdeploy-6951] PG::UniqueViolation: ERROR: could not create unique index "index_organisations_on_human_id_and_territory_id"
Sur prod:
2021-05-06 15:13:14.937336379 +0200 CEST [postdeploy-2883] DETAIL: Key (human_id, territory_id)=(, 12) is duplicated. 2021-05-06 15:13:14.937335323 +0200 CEST [postdeploy-2883] PG::UniqueViolation: ERROR: could not create unique index "index_organisations_on_human_id_and_territory_id"
reverts #1426
Checklist avant review:
-
reparcourir le code rapidement pour voir les problèmes évidents (fichiers touchés inutilement, debug logs qui trainent…). -
Tester la fonctionnalité sur la review app