Skip to content

Commit

Permalink
Merge pull request #2784 from GeotrekCE/update_uml_fix_migrations
Browse files Browse the repository at this point in the history
Update uml diagrams and fix migrations for outdoor app
  • Loading branch information
babastienne committed Oct 6, 2021
2 parents 08842b7 + 7149409 commit e3a76af
Show file tree
Hide file tree
Showing 19 changed files with 6 additions and 10 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,18 @@ css:

%.pdf:
mkdir -p docs/data-model
postgresql_autodoc -h localhost -u geotrek -d geotrekdb -t dot -m "$*_.*"
postgresql_autodoc -h localhost -u geotrek -d geotrekdb -t dot -m "$*_.*" --password=geotrek -s "public"
dot geotrekdb.dot -T pdf -o docs/data-model/$@
rm geotrekdb.dot

authent.pdf:
mkdir -p docs/data-model
postgresql_autodoc -h localhost -u geotrek -d geotrekdb -t dot -m "auth(ent)?_.*"
postgresql_autodoc -h localhost -u geotrek -d geotrekdb -t dot -m "auth(ent)?_.*" --password=geotrek -s "public"
dot geotrekdb.dot -T pdf -o docs/data-model/authent.pdf
rm geotrekdb.dot

global.pdf:
postgresql_autodoc -h localhost -u geotrek -d geotrekdb -t dot
postgresql_autodoc -h localhost -u geotrek -d geotrekdb -t dot --password=geotrek -s "public"
dot geotrekdb.dot -T pdf -o docs/data-model/global.pdf
rm geotrekdb.dot

Expand Down
Binary file modified docs/data-model/authent.pdf
Binary file not shown.
Binary file modified docs/data-model/cirkwi.pdf
Binary file not shown.
Binary file modified docs/data-model/core.pdf
Binary file not shown.
Binary file modified docs/data-model/diving.pdf
Binary file not shown.
Binary file modified docs/data-model/feedback.pdf
Binary file not shown.
Binary file modified docs/data-model/flatpages.pdf
Binary file not shown.
Binary file modified docs/data-model/global.pdf
Binary file not shown.
Binary file modified docs/data-model/infrastructure.pdf
Binary file not shown.
Binary file modified docs/data-model/land.pdf
Binary file not shown.
Binary file modified docs/data-model/maintenance.pdf
Binary file not shown.
Binary file modified docs/data-model/outdoor.pdf
Binary file not shown.
Binary file modified docs/data-model/sensitivity.pdf
Binary file not shown.
Binary file modified docs/data-model/signage.pdf
Binary file not shown.
Binary file modified docs/data-model/tourism.pdf
Binary file not shown.
Binary file modified docs/data-model/trekking.pdf
Binary file not shown.
Binary file modified docs/data-model/zoning.pdf
Binary file not shown.
4 changes: 1 addition & 3 deletions geotrek/outdoor/migrations/0025_merge_ratings_min_max.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# Generated by Célia 23.8 on 2021-09-15 15:12

from django.apps import apps

from django.db import migrations


def merge_ratings_min_max(app, schema):
def merge_ratings_min_max(apps, schema):
site_model = apps.get_model('outdoor', 'Site')
sites = site_model.objects.all()
for site in sites:
Expand Down
6 changes: 2 additions & 4 deletions geotrek/outdoor/migrations/0027_merge_ratings.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# Generated by Célia 23.8 on 2021-09-15 15:12

from django.apps import apps

from django.db import migrations


def merge_ratings(app, schema):
def merge_ratings(apps, schema):
site_model = apps.get_model('outdoor', 'Site')
sites = site_model.objects.all()
for site in sites:
Expand All @@ -15,7 +13,7 @@ def merge_ratings(app, schema):
site.ratings_min.clear()


def reverse_merge_ratings(app, schema):
def reverse_merge_ratings(apps, schema):
site_model = apps.get_model('outdoor', 'Site')
sites = site_model.objects.all()
for site in sites:
Expand Down

0 comments on commit e3a76af

Please sign in to comment.