You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/configuration.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -386,15 +386,15 @@ Example showing default values:
386
386
387
387
By default, SQLMesh compares the current state of project files to the target `<env>` environment when `sqlmesh plan <env>` is run. However, a common expectation is that local changes should always be compared to the production environment.
388
388
389
-
The `always_init_from_prod` boolean plan option can alter this behavior. When enabled, SQLMesh will always attempt to compare against the production environment; If that does not exist, SQLMesh will fall back to comparing against the target environment.
389
+
The `always_recreate_environment` boolean plan option can alter this behavior. When enabled, SQLMesh will always attempt to compare against the production environment by recreating the target environment; If `prod` does not exist, SQLMesh will fall back to comparing against the target environment.
390
390
391
391
**NOTE:**: Upon succesfull plan application, changes are still promoted to the target `<env>` environment.
392
392
393
393
=== "YAML"
394
394
395
395
```yaml linenums="1"
396
396
plan:
397
-
always_init_from_prod: True
397
+
always_recreate_environment: True
398
398
```
399
399
400
400
=== "Python"
@@ -416,7 +416,7 @@ The `always_init_from_prod` boolean plan option can alter this behavior. When en
416
416
417
417
#### Change Categorization Example
418
418
419
-
Consider this scenario with `always_init_from_prod` enabled:
419
+
Consider this scenario with `always_recreate_environment` enabled:
Copy file name to clipboardExpand all lines: docs/reference/configuration.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ Configuration for the `sqlmesh plan` command.
80
80
|`enable_preview`| Indicates whether to enable [data preview](../concepts/plans.md#data-preview) for forward-only models when targeting a development environment (Default: True, except for dbt projects where the target engine does not support cloning) | Boolean | N |
81
81
|`no_diff`| Don't show diffs for changed models (Default: False) | boolean | N |
82
82
|`no_prompts`| Disables interactive prompts in CLI (Default: True) | boolean | N |
83
-
|`always_init_from_prod`| Always recreates the target environment from the environment specified in `create_from` (by default `prod`) (Default: False) | boolean | N |
83
+
|`always_recreate_environment`| Always recreates the target environment from the environment specified in `create_from` (by default `prod`) (Default: False) | boolean | N |
84
84
## Run
85
85
86
86
Configuration for the `sqlmesh run` command. Please note that this is only applicable when configured with the [builtin](#builtin) scheduler.
0 commit comments