From 02e9ba23916f26dfe06c92372d52757d3abf033c Mon Sep 17 00:00:00 2001 From: inter Date: Mon, 8 Sep 2025 16:35:49 +0800 Subject: [PATCH] Add File --- backend/alembic/script.py.mako | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 backend/alembic/script.py.mako diff --git a/backend/alembic/script.py.mako b/backend/alembic/script.py.mako new file mode 100644 index 0000000..217a9a8 --- /dev/null +++ b/backend/alembic/script.py.mako @@ -0,0 +1,25 @@ +"""${message} + +Revision ID: ${up_revision} +Revises: ${down_revision | comma,n} +Create Date: ${create_date} + +""" +from alembic import op +import sqlalchemy as sa +import sqlmodel.sql.sqltypes +${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"}