-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement custom time per match (#337)
- Loading branch information
Showing
39 changed files
with
689 additions
and
188 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
backend/alembic/versions/8bae62f80db7_create_custom_match_duration_fields.py
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,33 @@ | ||
"""create custom match duration fields | ||
Revision ID: 8bae62f80db7 | ||
Revises: d104afae31e9 | ||
Create Date: 2023-11-19 15:05:51.284093 | ||
""" | ||
|
||
import sqlalchemy as sa | ||
|
||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision: str | None = '8bae62f80db7' | ||
down_revision: str | None = 'd104afae31e9' | ||
branch_labels: str | None = None | ||
depends_on: str | None = None | ||
|
||
|
||
def upgrade() -> None: | ||
op.add_column('matches', sa.Column('margin_minutes', sa.Integer(), nullable=True)) | ||
op.add_column('matches', sa.Column('custom_duration_minutes', sa.Integer(), nullable=True)) | ||
op.add_column('matches', sa.Column('custom_margin_minutes', sa.Integer(), nullable=True)) | ||
op.add_column( | ||
'tournaments', sa.Column('margin_minutes', sa.Integer(), server_default='5', nullable=False) | ||
) | ||
|
||
|
||
def downgrade() -> None: | ||
op.drop_column('tournaments', 'margin_minutes') | ||
op.drop_column('matches', 'custom_margin_minutes') | ||
op.drop_column('matches', 'custom_duration_minutes') | ||
op.drop_column('matches', 'margin_minutes') |
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
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
Oops, something went wrong.
4b3dfb9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
bracket – ./
bracketsys.vercel.app
bracket-git-master-evroon.vercel.app
bscleiden.vercel.app
bracket-evroon.vercel.app
bracket.familievroon.nl