generated from liquibase/liquibase-extension-example
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated readme, unignored dropCheckConstraint
- Loading branch information
1 parent
cbbbeff
commit ad57a34
Showing
4 changed files
with
38 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/test/resources/liquibase/harness/change/changelogs/databricks/dropCheckConstraint.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd"> | ||
|
||
<changeSet id="1" author="cody"> | ||
<ext:addCheckConstraint constraintName="test_check_constraint" | ||
tableName="posts">id > 0 | ||
</ext:addCheckConstraint> | ||
<rollback/> | ||
</changeSet> | ||
<changeSet id="2" author="oleh"> | ||
<ext:dropCheckConstraint constraintName="test_check_constraint" | ||
tableName="posts"/> | ||
<rollback/> | ||
</changeSet> | ||
|
||
</databaseChangeLog> |
3 changes: 3 additions & 0 deletions
3
...t/resources/liquibase/harness/change/expectedSnapshot/databricks/dropCheckConstraint.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
|
||
} |
4 changes: 2 additions & 2 deletions
4
src/test/resources/liquibase/harness/change/expectedSql/databricks/dropCheckConstraint.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
INVALID TEST | ||
-- Databricks Supports Check Constraints, but Liquibase OSS does not have the change type to extend | ||
ALTER TABLE main.liquibase_harness_test_ds.posts ADD CONSTRAINT test_check_constraint CHECK (id > 0) | ||
ALTER TABLE main.liquibase_harness_test_ds.posts DROP CONSTRAINT test_check_constraint |