Skip to content

Commit f8340e7

Browse files
?
1 parent 6782261 commit f8340e7

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

migrations/versions/latest_greencode.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"""
55

66
from collections.abc import Sequence
7+
from typing import TYPE_CHECKING
8+
9+
if TYPE_CHECKING:
10+
from pytest_alembic import MigrationContext
711

812
import sqlalchemy as sa
913
from alembic import op
@@ -42,3 +46,17 @@ def downgrade() -> None:
4246
op.drop_table("greencode_memberships")
4347
op.drop_table("greencode_items")
4448
# ### end Alembic commands ###
49+
50+
51+
def pre_test_upgrade(
52+
alembic_runner: "MigrationContext",
53+
alembic_connection: sa.Connection,
54+
) -> None:
55+
pass
56+
57+
58+
def test_upgrade(
59+
alembic_runner: "MigrationContext",
60+
alembic_connection: sa.Connection,
61+
) -> None:
62+
pass

0 commit comments

Comments
 (0)