aboutsummaryrefslogtreecommitdiffstats
path: root/alembic/script.py.mako
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2023-09-04 21:26:17 +0100
committerGravatar GitHub <[email protected]>2023-09-04 21:26:17 +0100
commit48459ff3139f0fdf4c272fbbbf40148000fe28bd (patch)
tree04848901819ede9c851bd07fea46bd709d91f7af /alembic/script.py.mako
parentMerge pull request #73 from python-discord/jb3/deps-and-toolchain-updates (diff)
parentSubject Alembic files to the wrath of the linter (diff)
Merge pull request #74 from python-discord/jb3/sqlalchemy-2
SQLAlchemy 2
Diffstat (limited to 'alembic/script.py.mako')
-rw-r--r--alembic/script.py.mako10
1 files changed, 6 insertions, 4 deletions
diff --git a/alembic/script.py.mako b/alembic/script.py.mako
index 2c01563..2c87742 100644
--- a/alembic/script.py.mako
+++ b/alembic/script.py.mako
@@ -16,9 +16,11 @@ branch_labels = ${repr(branch_labels)}
depends_on = ${repr(depends_on)}
-def upgrade():
- ${upgrades if upgrades else "pass"}
+def upgrade() -> None:
+ """Apply the current migration."""
+ ${upgrades}
-def downgrade():
- ${downgrades if downgrades else "pass"}
+def downgrade() -> None:
+ """Revert the current migration."""
+ ${downgrades}