-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add radio boolean program metadata table (#173)
- Loading branch information
1 parent
42ea1c1
commit 5bf21c4
Showing
4 changed files
with
476 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
alembic/versions/a0a707673259_add_radio_to_program_metadata.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,30 @@ | ||
"""Add radio to program metadata | ||
Revision ID: a0a707673259 | ||
Revises: 5bff4dceda53 | ||
Create Date: 2024-05-03 09:36:04.954535 | ||
""" | ||
from typing import Sequence, Union | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = 'a0a707673259' | ||
down_revision: Union[str, None] = '5bff4dceda53' | ||
branch_labels: Union[str, Sequence[str], None] = None | ||
depends_on: Union[str, Sequence[str], None] = None | ||
|
||
|
||
def upgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('program_metadata', sa.Column('radio', sa.Boolean(), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column('program_metadata', 'radio') | ||
# ### end Alembic commands ### |
Oops, something went wrong.
5bf21c4
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.
Coverage Report