Skip to content

Commit

Permalink
Attempt to fix migration error in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsuta committed Nov 29, 2024
1 parent 819f913 commit afba60f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alembic/versions/8224640bc6cc_add_badge_pickup_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def sqlite_column_reflect_listener(inspector, table, column_info):


def upgrade():
op.add_column('attendee', sa.Column('badge_pickup_group_id', residue.UUID(), nullable=True))
op.create_table('badge_pickup_group',
sa.Column('id', residue.UUID(), nullable=False),
sa.Column('created', residue.UTCDateTime(), server_default=sa.text("timezone('utc', current_timestamp)"), nullable=False),
Expand All @@ -63,7 +64,6 @@ def upgrade():
sa.Column('account_id', sa.Unicode(), server_default='', nullable=False),
sa.PrimaryKeyConstraint('id', name=op.f('pk_badge_pickup_group'))
)
op.add_column('attendee', sa.Column('badge_pickup_group_id', residue.UUID(), nullable=True))
op.create_foreign_key(op.f('fk_attendee_badge_pickup_group_id_badge_pickup_group'), 'attendee', 'badge_pickup_group', ['badge_pickup_group_id'], ['id'], ondelete='SET NULL')


Expand Down

0 comments on commit afba60f

Please sign in to comment.