diff --git a/Content/Z_Resources/Snippets/text/checks-prerequisites.flsnp b/Content/Z_Resources/Snippets/text/checks-prerequisites.flsnp new file mode 100644 index 000000000..62098755b --- /dev/null +++ b/Content/Z_Resources/Snippets/text/checks-prerequisites.flsnp @@ -0,0 +1,40 @@ + + +
+--checks-scope
parameter includes the scope of this check.For example:
+liquibase.properties
+ JAVA_OPTS
+ --license-key=<string>
--checks-scope=<string>
+ globalArgs: { license-key: "<string>" }
+cmdArgs: { checks-scope: "<string>" }
+ liquibase.licenseKey: <string>
+liquibase.command.checksScope: <string>
liquibase.licenseKey: <string>
+liquibase.command.checks.run.checksScope: <string>
+ JAVA_OPTS=-Dliquibase.licenseKey=<string> -Dliquibase.command.checksScope=<string>
JAVA_OPTS=-Dliquibase.licenseKey=<string> -Dliquibase.command.checks.run.checksScope=<string>
+ LIQUIBASE_LICENSE_KEY=<string>
+LIQUIBASE_COMMAND_CHECKS_SCOPE=<string>
LIQUIBASE_LICENSE_KEY=<string>
+LIQUIBASE_COMMAND_CHECKS_RUN_CHECKS_SCOPE=<string>
+ This check is enabled by default. To verify that it is currently enabled, run the
command:
liquibase checks show --check-name=<string>
+ This check is disabled by default. To enable it, run the
command:
liquibase checks enable --check-name=<string>
+ When you try to enable the check,
This check can not be enabled directly because one or more fields does not have a default value. Create a copy of this check and initiate the customization workflow.
+ This check is static, meaning it does not have any customization settings.
+This check is dynamic, meaning you can customize its settings.
+However, you cannot directly customize this check. Instead, you must use the
command to create a copy of the check which you can then customize:
liquibase checks copy --check-name=<string>
+ Follow the steps in the CLI to give your new check a useful name. By default, the name of the copy is <CheckName>1
.
Run the
command:
liquibase checks customize --check-name=<string>
+ Follow the steps in the CLI to set new values. When finished, you can run the show command again to verify that your configuration is correct:
liquibase checks show --check-name=<string>
+ To run the check, use the
command:
liquibase checks run --check-name=<string>
+ stages:
+ Default:
+ actions:
+ - type: liquibase
+ command: checks run
+ cmdArgs: {check-name: <string>}
+ And then run the flow
command on your flow file:
liquibase flow
+ This check warns a user when a column is being dropped so that they can ensure that such a schema change won't lead to unintentional loss of data and unrecoverable data loss.
-Use the check to warn when a column is being dropped. A column drop can lead to a significant schema change which can destroy your organization’s most essential resource: critical data. Such an unintended change can result in permanent data loss, production level service outages, and more. This quality check, like other checks, can be configured with a “severity” level which returns an exit code designed to stop automated jobs, giving your team time to inspect these significant changes.
-The ChangeDropColumnWarn
check is enabled by default, so you will not need to turn it on if you have not changed your settings previously. To run the ChangeDropColumnWarn
check, ensure you have a checks-scope
property includes
. The ChangeDropColumnWarn
is enabled.
Enable the ChangeDropColumnWarn
check by running the following command in the CLI:
liquibase checks enable --check-name=ChangeDropColumnWarn
+ ChangeDropColumnWarn
+ ChangeDropColumnWarn
is a quality check that warns a user when a column is being dropped so that they can ensure that such a schema change won't lead to unintentional loss of data and unrecoverable data loss.
Short Name | -Scope | -Enabled | -Severity | -Customization | -Description | +About ChangeDropColumnWarn |
|
---|---|---|---|---|---|---|---|
ChangeDropColumnWarn
- |
-
- true - |
-
- Default value: 0 - | 4.5.0+ | +||||
Scope (--checks-scope ) |
+ changelog
|
-
- <None> + | |||||
Default status | +enabled
|
- This check warns a user when a column is being dropped so that they can ensure that dropping the table won't lead to unintentional loss of data | +|||||
Default severity (exit code) | +0 ("INFO ") |
+ ||||||
Customizable settings | +No (static) |
Use the check to warn when a column is being dropped. A column drop can lead to a significant schema change which can destroy your organization’s most essential resource: critical data. Such an unintended change can result in permanent data loss, production level service outages, and more. This quality check, like other checks, can be configured with a “severity” level which returns an exit code designed to stop automated jobs, giving your team time to inspect these significant changes.
+ChangeDropColumnWarn
liquibase checks enable --check-name=ChangeDropColumnWarn
example output
-Check 'ChangeDropColumnWarn' has been enabled.
+ Check 'ChangeDropColumnWarn' has been enabled.
+-----+--------------------------------+----------------------------+--------------------------------+---------+--------------------------------+----------+------------+
| # | Check Name | Short Name | Description | Enabled | Customization | Severity | Scope |
+-----+--------------------------------+----------------------------+--------------------------------+---------+--------------------------------+----------+------------+
diff --git a/Content/start/release-notes/liquibase-release-notes/liquibase-4.5.0.htm b/Content/start/release-notes/liquibase-release-notes/liquibase-4.5.0.htm
index fc940662f..da434ee9a 100644
--- a/Content/start/release-notes/liquibase-release-notes/liquibase-4.5.0.htm
+++ b/Content/start/release-notes/liquibase-release-notes/liquibase-4.5.0.htm
@@ -8,7 +8,7 @@
4.5.0 Release Notes
Full Changelog: v4.4.3...v4.5.0 (September 27, 2021)
- This release includes community-contributed pull requests, and bug fixes, and support for .
+ This release includes community-contributed pull requests, and bug fixes, and support for Quality Checks .
Quality checks allow you to run checks against SQL, XML, JSON, and YAML s for conditions and configurations important to your organization. More quality checks are forthcoming in future releases; provide feedback on what checks matter most to you.
Here is a closer look at what we improved in the latest release.
Notable Changes
diff --git a/Project/ConditionTagSets/checks-use.flcts b/Project/ConditionTagSets/checks-use.flcts
new file mode 100644
index 000000000..b09e2b0e3
--- /dev/null
+++ b/Project/ConditionTagSets/checks-use.flcts
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
\ No newline at end of file