A wheel whose top-level module is `app` collides with anything else in a user's venv, so the package that is about to be published takes the name it is published under. Only the Python package moves; the repo, the Docker WORKDIR and the compose project keep theirs. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
41 lines
1.0 KiB
Python
41 lines
1.0 KiB
Python
"""Drop the item table
|
|
|
|
The template's example model. Flows are persisted as files in their own git
|
|
repository, so nothing in the app uses it any more.
|
|
|
|
Revision ID: b7c41d2f8a30
|
|
Revises: fe56fa70289e
|
|
Create Date: 2026-08-15
|
|
|
|
"""
|
|
|
|
import sqlalchemy as sa
|
|
import sqlmodel.sql.sqltypes
|
|
from alembic import op
|
|
|
|
revision = "b7c41d2f8a30"
|
|
down_revision = "fe56fa70289e"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
op.drop_table("item")
|
|
|
|
|
|
def downgrade():
|
|
op.create_table(
|
|
"item",
|
|
sa.Column("id", sa.Uuid(), nullable=False),
|
|
sa.Column(
|
|
"title", sqlmodel.sql.sqltypes.AutoString(length=255), nullable=False
|
|
),
|
|
sa.Column(
|
|
"description", sqlmodel.sql.sqltypes.AutoString(length=255), nullable=True
|
|
),
|
|
sa.Column("created_at", sa.DateTime(timezone=True), nullable=True),
|
|
sa.Column("owner_id", sa.Uuid(), nullable=False),
|
|
sa.ForeignKeyConstraint(["owner_id"], ["user.id"], ondelete="CASCADE"),
|
|
sa.PrimaryKeyConstraint("id"),
|
|
)
|