From 62a2d41cab84f7f96545d7ba80ecb8981d352b03 Mon Sep 17 00:00:00 2001 From: Dan Lindholm Date: Mon, 21 Oct 2024 11:42:20 +0200 Subject: [PATCH] use default namespace in run --- src/postcar/db/migrations/operations.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/postcar/db/migrations/operations.py b/src/postcar/db/migrations/operations.py index 412f353..5741da8 100644 --- a/src/postcar/db/migrations/operations.py +++ b/src/postcar/db/migrations/operations.py @@ -1,5 +1,6 @@ import typing as t from postcar.db import lookups, queries +from postcar.config import defaults if t.TYPE_CHECKING: @@ -114,7 +115,7 @@ async def migrate( async def run( connection: "Connection", package: str, - namespace: str, + namespace: str = defaults.DEFAULT_NAMESPACE, dry_run: bool = False, ) -> None: if dry_run: