-
Notifications
You must be signed in to change notification settings - Fork 167
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
building a liquibase changelog #9142
base: main
Are you sure you want to change the base?
Conversation
Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://67923c1b23163722ecb3287b--harness-developer.netlify.app |
|
||
1. Create a changelog titled `changelog.xml` **or** `changelog.yaml` in your project directory. | ||
2. In your changelog file, reference the directory of SQL files. Each SQL file will be treated as a | ||
separate changeset. Here's an example of how to structure te XML changelog: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
te should be replaced with the
separate changeset. Here's an example of how to structure te XML changelog: | ||
|
||
```xml | ||
<?xml version="1.0" encoding="UTF-8"?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think rather than xml we should only have examples for yaml, easier for docs and easier to maintain
</databaseChangeLog> | ||
``` | ||
|
||
3. Use the command line to run Liquibase against your changelog file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we are asking customers to run liquibase outside harness?
calculate a checksum of each change. It only executes new changesets or those with modified checksums and records successful executions in the tracking table. | ||
|
||
```xml | ||
<changeSet id="1" author="janet"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as before, instead of xml, can it be yaml?
Thanks for contributing to the Harness Developer Hub! Our code owners will review your submission.
Description
PR lifecycle
We aim to merge PRs within one week or less, but delays happen sometimes.
If your PR is open longer than two weeks without any human activity, please tag a code owner in a comment.
PRs must meet these requirements to be merged: