Skip to content

Commit

Permalink
Fix upgrade task with PSQL syntax. [skip ci].
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrillkuettel committed Jul 29, 2024
1 parent ae03755 commit c4e5609
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/privatim/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,10 @@ def upgrade(context: 'UpgradeContext'): # type: ignore[no-untyped-def]
# this also stores the field if attended
context.operations.execute(
"""
INSERT INTO meetings_users_attendance (meeting_id, user_id,
status)
SELECT meeting_id, user_id, 'invited' FROM
meetings_users_association
"""
INSERT INTO meetings_users_attendance (meeting_id, user_id, status)
SELECT meeting_id, user_id, 'INVITED'::attendancestatus
FROM meetings_users_association
"""
)
context.drop_table('meetings_users_association')

Expand Down

0 comments on commit c4e5609

Please sign in to comment.