mirror of
https://github.com/Hestia-Homes/survey-extraction.git
synced 2026-06-30 13:10:56 +00:00
alembic
This commit is contained in:
parent
eb893e4c6b
commit
14c17b064e
1 changed files with 35 additions and 0 deletions
|
|
@ -0,0 +1,35 @@
|
|||
"""add coorodiantion and design status
|
||||
|
||||
Revision ID: eccdd5f607c1
|
||||
Revises: c8af22cece92
|
||||
Create Date: 2026-02-19 17:07:14.085232
|
||||
|
||||
"""
|
||||
from typing import Sequence, Union
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
import sqlmodel
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision: str = 'eccdd5f607c1'
|
||||
down_revision: Union[str, None] = 'c8af22cece92'
|
||||
branch_labels: Union[str, Sequence[str], None] = None
|
||||
depends_on: Union[str, Sequence[str], None] = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
"""Upgrade schema."""
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('hubspot_deal_data', sa.Column('coordination_status', sqlmodel.sql.sqltypes.AutoString(), nullable=True))
|
||||
op.add_column('hubspot_deal_data', sa.Column('design_status', sqlmodel.sql.sqltypes.AutoString(), nullable=True))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
"""Downgrade schema."""
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('hubspot_deal_data', 'design_status')
|
||||
op.drop_column('hubspot_deal_data', 'coordination_status')
|
||||
# ### end Alembic commands ###
|
||||
Loading…
Add table
Reference in a new issue