feat(migrations): 新增 alembic 迁移(public_nav / nav_category / 友链 / 访问统计)

This commit is contained in:
bwstudio
2026-09-06 21:34:39 +08:00
parent 0bfe6f9d8c
commit 1a33648b9a
11 changed files with 624 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
"""${message}
Revision ID: ${up_revision}
Revises: ${down_revision | comma,n}
Create Date: ${create_date}
"""
from alembic import op
import sqlalchemy as sa
${imports if imports else ""}
# revision identifiers, used by Alembic.
revision = ${repr(up_revision)}
down_revision = ${repr(down_revision)}
branch_labels = ${repr(branch_labels)}
depends_on = ${repr(depends_on)}
def upgrade():
${upgrades if upgrades else "pass"}
def downgrade():
${downgrades if downgrades else "pass"}