Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow broader types from plain migrations #7

Merged
merged 2 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/postcar/__about__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024-present tunnelworks <git@tunnelworks.org>
#
# SPDX-License-Identifier: Apache-2.0
__version__ = "0.0.6"
__version__ = "0.0.7"
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
Loading