-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove mandatory email requirement from new participant form
- Loading branch information
Showing
3 changed files
with
68 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
"""empty message | ||
Revision ID: 017c60414c03 | ||
Revises: 4f9ca10b7b9d | ||
Create Date: 2023-10-05 15:08:34.540672 | ||
""" | ||
|
||
from typing import Optional, Tuple, Union | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = '017c60414c03' | ||
down_revision: str = '4f9ca10b7b9d' | ||
branch_labels: Optional[Union[str, Tuple[str, ...]]] = None | ||
depends_on: Optional[Union[str, Tuple[str, ...]]] = None | ||
|
||
|
||
def upgrade(engine_name: str = '') -> None: | ||
"""Upgrade all databases.""" | ||
# Do not modify. Edit `upgrade_` instead | ||
globals().get(f'upgrade_{engine_name}', lambda: None)() | ||
|
||
|
||
def downgrade(engine_name: str = '') -> None: | ||
"""Downgrade all databases.""" | ||
# Do not modify. Edit `downgrade_` instead | ||
globals().get(f'downgrade_{engine_name}', lambda: None)() | ||
|
||
|
||
|
||
|
||
|
||
def upgrade_() -> None: | ||
"""Upgrade default database.""" | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('ticket_participant', schema=None) as batch_op: | ||
batch_op.alter_column('email_address_id', | ||
existing_type=sa.INTEGER(), | ||
nullable=True) | ||
|
||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade_() -> None: | ||
"""Downgrade default database.""" | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('ticket_participant', schema=None) as batch_op: | ||
batch_op.alter_column('email_address_id', | ||
existing_type=sa.INTEGER(), | ||
nullable=False) | ||
|
||
# ### end Alembic commands ### | ||
|