diff options
author | 2023-09-04 21:21:37 +0100 | |
---|---|---|
committer | 2023-09-04 21:21:37 +0100 | |
commit | c6829ab8134adceb2ed0bdaf71f1abfeef63286c (patch) | |
tree | 04848901819ede9c851bd07fea46bd709d91f7af /alembic/script.py.mako | |
parent | Use `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.mako | 10 |
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} |