Skip to content

Commit

Permalink
feat(back): add foreign key to id_module visit
Browse files Browse the repository at this point in the history
Need to add foreign key in order to delete visit object

Reviewed-by: andriacap
  • Loading branch information
andriacap committed Aug 29, 2023
1 parent a3dd641 commit eecebf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/geonature/core/gn_monitoring/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class TBaseVisits(DB.Model):
# Pour le moment non défini comme une clé étrangère
# pour les questions de perfs
# a voir en fonction des usage
id_module = DB.Column(DB.Integer)
id_module = DB.Column(DB.Integer,ForeignKey("gn_commons.t_modules.id_module"))

visit_date_min = DB.Column(DB.DateTime)
visit_date_max = DB.Column(DB.DateTime)
Expand Down

0 comments on commit eecebf7

Please sign in to comment.