chore: import WonderQ project

This commit is contained in:
duanshuwen committed 2026-08-11 19:19:11 +08:00
commit f5a9e4403a
452 files changed
+34173

No files matched your search

@@ -0,0 +1,28 @@
"""Add map image module table.
Revision ID: 0002_add_map_image
Revises: 0001_initial_schema
Create Date: 2026-07-01
"""
from alembic import op
from sqlalchemy import inspect
from app.models import MapImage
revision = "0002_add_map_image"
down_revision = "0001_initial_schema"
branch_labels = None
depends_on = None
def upgrade() -> None:
bind = op.get_bind()
if "MapImage" not in set(inspect(bind).get_table_names()):
MapImage.__table__.create(bind)
def downgrade() -> None:
bind = op.get_bind()
if "MapImage" in set(inspect(bind).get_table_names()):
MapImage.__table__.drop(bind)