feat(db): support flask migrate (#201)

Co-authored-by: s01249 <songbing@smyfinancial.com>
This commit is contained in:
Evan Sung
2023-10-13 02:55:26 -05:00
committed by GitHub
parent f033af2f58
commit 41d810642b
7 changed files with 558 additions and 1 deletions

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"}