34 lines
894 B
Python
34 lines
894 B
Python
"""add clamp_connections
|
|
|
|
Revision ID: c7882cedc9ae
|
|
Revises: bfbce324cd5f
|
|
Create Date: 2026-07-02 13:31:57.064381
|
|
"""
|
|
|
|
from typing import Sequence, Union
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision: str = "c7882cedc9ae"
|
|
down_revision: Union[str, None] = "bfbce324cd5f"
|
|
branch_labels: Union[str, Sequence[str], None] = None
|
|
depends_on: Union[str, Sequence[str], None] = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.create_table(
|
|
"clamp_connections",
|
|
sa.Column("id", sa.Integer(), nullable=False),
|
|
sa.Column("min_mm", sa.Float(), nullable=True),
|
|
sa.Column("max_mm", sa.Float(), nullable=True),
|
|
sa.Column("min_in", sa.Float(), nullable=True),
|
|
sa.Column("max_in", sa.Float(), nullable=True),
|
|
sa.PrimaryKeyConstraint("id"),
|
|
)
|
|
|
|
|
|
def downgrade() -> None:
|
|
op.drop_table("clamp_connections")
|