Org postaru je user
This commit is contained in:
parent
c5620e0fca
commit
b8cded675a
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue