Browse Source

Org postaru je user

middleware_test
Pavel Turinsky (DebianVM @ Zr) 4 years ago
parent
commit
b8cded675a
  1. 4
      db_compare.py

4
db_compare.py

@ -332,7 +332,9 @@ def check_problem_common():
check_same(o,n, old_fields, new_fields)
# Opravovatelé
old_query = "SELECT id, opravovatel_id FROM seminar_problemy"
# Po staru byli opravovatele organizatori, takze je potreba je dohledat.
old_query = """SELECT seminar_problemy.id, org.id AS opravovatel_id FROM seminar_problemy
JOIN seminar_organizator AS org ON seminar_problemy.opravovatel_id = org.user_id;"""
new_query = "SELECT problem_id, organizator_id FROM seminar_problemy_opravovatele"
# Simple cursors

Loading…
Cancel
Save