Org postaru je user

This commit is contained in:
Pavel Turinsky (DebianVM @ Zr) 2021-06-29 22:45:35 +00:00
parent c5620e0fca
commit b8cded675a

View file

@ -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