-
Notifications
You must be signed in to change notification settings - Fork 837
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cad878c
commit 23e9992
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
alembic/versions/2025_01_10_2246-6a947c379c02_observer_summary_and_output.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 @@ | ||
"""observer summary and output | ||
Revision ID: 6a947c379c02 | ||
Revises: d5640aa644b9 | ||
Create Date: 2025-01-10 22:46:41.757862+00:00 | ||
""" | ||
|
||
from typing import Sequence, Union | ||
|
||
import sqlalchemy as sa | ||
|
||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = "6a947c379c02" | ||
down_revision: Union[str, None] = "d5640aa644b9" | ||
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("observer_cruises", sa.Column("summary", sa.String(), nullable=True)) | ||
op.add_column("observer_cruises", sa.Column("output", sa.JSON(), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column("observer_cruises", "output") | ||
op.drop_column("observer_cruises", "summary") | ||
# ### end Alembic commands ### |