unip-controller/controller/alembic/versions/bc8a32d54029_.py
2025-04-15 20:56:15 +03:00

32 lines
1.1 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""Значения переменных ассоциированы с корнем триала
Revision ID: bc8a32d54029
Revises: 8430ab0a47af
Create Date: 2024-08-14 16:38:05.542362
"""
from typing import Sequence, Union
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision: str = 'bc8a32d54029'
down_revision: Union[str, None] = '8430ab0a47af'
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('pipeline_trials', sa.Column('vars', postgresql.JSONB(astext_type=sa.Text()), nullable=True))
op.drop_column('pipeline_trials', 'stages')
# ### end Alembic commands ###
def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('pipeline_trials', sa.Column('stages', postgresql.JSONB(astext_type=sa.Text()), autoincrement=False, nullable=False))
op.drop_column('pipeline_trials', 'vars')
# ### end Alembic commands ###