Files
relay-bot/migrations/versions/0001_initial.py
T
2026-07-24 22:36:04 +03:00

25 lines
465 B
Python

"""initial schema"""
from alembic import op
from app.database.models import Base
revision = "0001_initial"
down_revision = None
branch_labels = None
depends_on = None
def upgrade() -> None:
bind = op.get_bind()
Base.metadata.create_all(
bind,
tables=[
table for table in Base.metadata.sorted_tables if table.name != "repository_bindings"
],
)
def downgrade() -> None:
Base.metadata.drop_all(op.get_bind())