Skip to content

Commit

Permalink
allow psycopg query types from plain migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
xoudini committed Dec 5, 2024
1 parent 0d0d655 commit f9c3a66
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/postcar/db/migrations/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@


if t.TYPE_CHECKING:
from psycopg.abc import Query
from postcar._types import Connection, Module


Expand Down Expand Up @@ -34,8 +35,8 @@ async def migrate(self) -> None:
async def rollback(self) -> None:
raise NotImplementedError()

def get_forward(self) -> t.Optional[str]:
def get_forward(self) -> t.Optional["Query"]:
return None

def get_rollback(self) -> t.Optional[str]:
def get_rollback(self) -> t.Optional["Query"]:
return None

0 comments on commit f9c3a66

Please sign in to comment.