aboutsummaryrefslogtreecommitdiffstats
path: root/alembic/script.py.mako
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2023-09-04 21:21:37 +0100
committerGravatar Joe Banks <[email protected]>2023-09-04 21:21:37 +0100
commitc6829ab8134adceb2ed0bdaf71f1abfeef63286c (patch)
tree04848901819ede9c851bd07fea46bd709d91f7af /alembic/script.py.mako
parentUse `thread.created_at` to determine thread creation (diff)
Subject Alembic files to the wrath of the linter
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}