-
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/ Program grid can change (#253)
* wip: program grid evolution * fix: test * wip test * chores: update some programs * chores: alembic * chores: default values for columns * alembic: new columns for program metadata * fix: use timezone for comparing start date * chores: update programs evolution * fix: tesdt * fix: right column type for date * fix: default time for empty date
- Loading branch information
1 parent
51b82ee
commit 43b6668
Showing
15 changed files
with
2,308 additions
and
187 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
"""program metadata | ||
Revision ID: 30abfd828007 | ||
Revises: 43103d5b49c9 | ||
Create Date: 2024-10-03 14:18:09.874225 | ||
""" | ||
from typing import Sequence, Union | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = '30abfd828007' | ||
down_revision: Union[str, None] = '43103d5b49c9' | ||
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('program_grid_start', sa.DateTime(), nullable=True)) | ||
op.add_column('program_metadata', sa.Column('program_grid_end', sa.DateTime(), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column('program_metadata', 'program_grid_end') | ||
op.drop_column('program_metadata', 'program_grid_start') | ||
# ### end Alembic commands ### |
30 changes: 30 additions & 0 deletions
30
alembic/versions/43103d5b49c9_program_add_start_end_date_for_grid_.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 @@ | ||
"""program: add start/end date for grid evolution | ||
Revision ID: 43103d5b49c9 | ||
Revises: af956a85658f | ||
Create Date: 2024-10-02 13:18:56.251135 | ||
""" | ||
from typing import Sequence, Union | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = '43103d5b49c9' | ||
down_revision: Union[str, None] = 'af956a85658f' | ||
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! ### | ||
pass | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
pass | ||
# ### end Alembic commands ### |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
43b6668
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