Skip to content

Commit

Permalink
Ajout test création index
Browse files Browse the repository at this point in the history
  • Loading branch information
amandine-sahl committed Mar 2, 2022
1 parent db23376 commit 0345b55
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions apptax/migrations/taxref/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def import_and_format_dbc_status():
text(
"""
--- Suppression des données en double contenu dans la table bdc_statut
CREATE INDEX bdc_statut_id_idx ON taxonomie.bdc_statut (id);
CREATE INDEX IF NOT EXISTS bdc_statut_id_idx ON taxonomie.bdc_statut (id);
WITH d AS (
SELECT
Expand All @@ -199,9 +199,6 @@ def import_and_format_dbc_status():
FROM taxonomie.bdc_statut s
USING id_doublon d
WHERE s.id = d.to_del and not id = min;
DROP INDEX taxonomie.bdc_statut_id_idx;
"""
)
)
Expand Down

0 comments on commit 0345b55

Please sign in to comment.