diff --git a/core/dbt/config/profile.py b/core/dbt/config/profile.py index f7bb134bb5b..a28b84fd5fb 100644 --- a/core/dbt/config/profile.py +++ b/core/dbt/config/profile.py @@ -111,6 +111,7 @@ def __init__( self.threads = threads self.credentials = credentials self.profile_env_vars = {} # never available on init + self.manage_schemas = manage_schemas def to_profile_info(self, serialize_credentials: bool = False) -> Dict[str, Any]: """Unlike to_project_config, this dict is not a mirror of any existing diff --git a/core/dbt/config/project.py b/core/dbt/config/project.py index 3c9ccf4f168..6b354e73131 100644 --- a/core/dbt/config/project.py +++ b/core/dbt/config/project.py @@ -601,7 +601,7 @@ def to_project_config(self, with_packages=False): "asset-paths": self.asset_paths, "target-path": self.target_path, "snapshot-paths": self.snapshot_paths, - "managed-schemas": self.managed_schemas, + "managed-schemas": [schema.to_dict() for schema in self.managed_schemas], "clean-targets": self.clean_targets, "log-path": self.log_path, "quoting": self.quoting,