Files
MemoryBear/api/migrations/versions/9def72f79398_202601301850.py
2026-01-30 18:56:44 +08:00

31 lines
901 B
Python
Raw Permalink 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.
"""202601301850
Revision ID: 9def72f79398
Revises: 550c10595967
Create Date: 2026-01-30 18:51:18.290796
"""
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 = '9def72f79398'
down_revision: Union[str, None] = '550c10595967'
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('memory_config', sa.Column('scene_id', sa.UUID(), nullable=True, comment='本体场景ID关联ontology_scene表'))
# ### end Alembic commands ###
def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('memory_config', 'scene_id')
# ### end Alembic commands ###