Liquibase supports "plain SQL" changelog files. You can add the formatted SQL changelog to an XML root changelog if you have more than one formatted SQL changelog or just use a formatted SQL changelog directly without the root XML changelog. Show
Note: When creating an SQL changelog file
with the Example: The changelog files may contain arbitrary SQL statements. The statements are converted to custom sql Change Types. Formatted SQL files use comments to provide Liquibase with metadata. Each SQL file must begin with the following comment:
changesetEach changeset in a formatted SQL file begins with a comment of the form:
The changeset
comment is followed by one or more SQL statements, separated by semicolons or by the value of the If you use the Liquibase Pro feature
changeset attributesUse the following attributes for your changesets:
PreconditionsPreconditions can be specified for each changeset. Currently, only the SQL check precondition is supported.
Rollback actionschangesets may include statements to be applied when rolling back the changeset. Rollback statements have the following format of the comments:
The comment is a description of the changeset. The format of the comment can be one of the following:
Note: By default, the statements will be split on a Future releases of Liquibase may use comments to generate documentation.
Note: When you add a comment to your changeset and deploy this changeset, the comment will not be applied to the DATABASECHANGELOG tracking table. Valid checksumValid checksum is a checksum which is valid for a specific changeset, regardless of what is stored in the database. It is typically used when you need to change a changeset and don't want errors to be thrown on databases on which it has been already run. Nevertheless, it is not a recommended procedure.(Since 3.5).
Ignore linesThe Marking two lines to be ignored:
Making two lines to be ignored by using start-end syntax:
Sample changelog
Related Links
What point during the analysis process does a data analyst use a changelog?At what point during the analysis process does a data analyst use a changelog? Correct. A data analyst uses a changelog while cleaning data.
What does a SQL data analyst do?A SQL data analyst is a data scientist that uses the SQL language to interpret data. This analysis is used to improve business information and provide new insights to managers.
Which of the following SQL functions can data analyst use to clean string variables?Correct: Data analysts can use the SUBSTR and TRIM functions to clean string variables.
What is data analytics in SQL?SQL for data analysis refers to the database querying language's ability to interact with multiple databases at once, as well as its use of relational databases.
|