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

output skipped executions in dry run #319

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions schemachange/session/SnowflakeSession.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def change_history_schema_exists(self) -> bool:
def create_change_history_schema(self, dry_run: bool) -> None:
query = f"CREATE SCHEMA IF NOT EXISTS {self.change_history_table.fully_qualified_schema_name}"
if dry_run:
self.logger.debug(
self.logger.info(
"Running in dry-run mode. Skipping execution.",
query=indent(dedent(query), prefix="\t"),
)
Expand All @@ -173,7 +173,7 @@ def create_change_history_table(self, dry_run: bool) -> None:
)
"""
if dry_run:
self.logger.debug(
self.logger.info(
"Running in dry-run mode. Skipping execution.",
query=indent(dedent(query), prefix="\t"),
)
Expand Down Expand Up @@ -308,7 +308,7 @@ def apply_change_script(
logger: structlog.BoundLogger,
) -> None:
if dry_run:
logger.debug("Running in dry-run mode. Skipping execution")
logger.info("Running in dry-run mode. Skipping execution")
return
logger.info("Applying change script")
# Define a few other change related variables
Expand Down