mirror of
https://github.com/Hestia-Homes/survey-extraction.git
synced 2026-06-30 13:10:56 +00:00
added new migration
This commit is contained in:
parent
ff391a3e38
commit
812f540f68
1 changed files with 30 additions and 0 deletions
30
alembic/versions/270ba252bc11_update_enum.py
Normal file
30
alembic/versions/270ba252bc11_update_enum.py
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
"""update enum
|
||||
|
||||
Revision ID: 270ba252bc11
|
||||
Revises: a6e4562797e4
|
||||
Create Date: 2025-08-14 16:52:17.473370
|
||||
|
||||
"""
|
||||
from typing import Sequence, Union
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision: str = '270ba252bc11'
|
||||
down_revision: Union[str, None] = 'a6e4562797e4'
|
||||
branch_labels: Union[str, Sequence[str], None] = None
|
||||
depends_on: Union[str, Sequence[str], None] = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
op.execute(
|
||||
"ALTER TYPE reporttype ADD VALUE IF NOT EXISTS 'osmosis_condition_pas_2035_report'"
|
||||
)
|
||||
|
||||
def downgrade() -> None:
|
||||
"""Downgrade schema."""
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
pass
|
||||
# ### end Alembic commands ###
|
||||
Loading…
Add table
Reference in a new issue