Skip to content

Commit

Permalink
fix passing kwargs to alembic
Browse files Browse the repository at this point in the history
  • Loading branch information
devkral committed Oct 21, 2024
1 parent 80c297b commit 4f20e09
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions edgy/cli/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def __init__(
render_as_batch: bool = True,
**kwargs: Any,
) -> None:
super().__init__(**kwargs)
super().__init__()

self.app = app
self.configure_callbacks: list[Callable] = []
Expand Down Expand Up @@ -95,9 +95,11 @@ def __init__(
self.registry.refresh_metadata()

self.directory = "migrations"
self.alembic_ctx_kwargs = kwargs
self.alembic_ctx_kwargs["compare_type"] = compare_type
self.alembic_ctx_kwargs["render_as_batch"] = render_as_batch
self.alembic_ctx_kwargs = {
**kwargs,
"compare_type": compare_type,
"render_as_batch": render_as_batch,
}

self.set_edgy_extension(app)

Expand Down

0 comments on commit 4f20e09

Please sign in to comment.