32 lines
803 B
Python
32 lines
803 B
Python
"""Add metadata to Tools
|
|
|
|
Revision ID: 1e553a664210
|
|
Revises: 2cceb07c2384
|
|
Create Date: 2025-03-17 15:50:05.562302
|
|
|
|
"""
|
|
|
|
from typing import Sequence, Union
|
|
|
|
import sqlalchemy as sa
|
|
|
|
from alembic import op
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision: str = "1e553a664210"
|
|
down_revision: Union[str, None] = "2cceb07c2384"
|
|
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("tools", sa.Column("metadata_", sa.JSON(), nullable=True))
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade() -> None:
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_column("tools", "metadata_")
|
|
# ### end Alembic commands ###
|