forked from linkong/planet
14 lines
361 B
Python
14 lines
361 B
Python
"""Baseline schema migration matching Base.metadata and init_db DDL."""
|
|
|
|
from __future__ import annotations
|
|
|
|
VERSION = "0001"
|
|
NAME = "baseline_schema"
|
|
|
|
|
|
async def upgrade(conn) -> None:
|
|
"""Create any missing SQLAlchemy baseline tables without altering existing rows."""
|
|
from app.db.session import Base
|
|
|
|
await conn.run_sync(Base.metadata.create_all)
|