29 lines
548 B
Python
29 lines
548 B
Python
"""drop client_id column from parts
|
|
|
|
Revision ID: b2c3d4e5f6a7
|
|
Revises: a1b2c3d4e5f6
|
|
Create Date: 2026-04-28 11:50:00.000000
|
|
"""
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = "b2c3d4e5f6a7"
|
|
down_revision = "a1b2c3d4e5f6"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.drop_column("parts", "client_id", schema="a76")
|
|
|
|
|
|
def downgrade() -> None:
|
|
op.add_column(
|
|
"parts",
|
|
sa.Column("client_id", sa.Integer(), nullable=True),
|
|
schema="a76",
|
|
)
|