Skip to content

Commit

Permalink
Extend Liquibase IT with includeAll
Browse files Browse the repository at this point in the history
Resolves #14751 by verifying that Liquibase upgrade in #15972 fixed (it in JVM mode)
  • Loading branch information
famod committed Apr 6, 2021
1 parent 13d339a commit 153161c
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@
<include relativeToChangelogFile="true" file="test/test.xml" />

<include relativeToChangelogFile="true" file="create-views.xml" />

<includeAll relativeToChangelogFile="true" path="includeAll" />
</databaseChangeLog>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">

<changeSet author="dev (generated)" id="includeAll-1">
<createTable tableName="INCLUDEALL_1">
<column name="ID" type="VARCHAR(255)">
<constraints nullable="false"/>
</column>
<column name="NAME" type="VARCHAR(255)"/>
</createTable>
</changeSet>

</databaseChangeLog>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">

<changeSet author="dev (generated)" id="includeAll-2">
<createTable tableName="INCLUDEALL_2">
<column name="ID" type="VARCHAR(255)">
<constraints nullable="false"/>
</column>
<column name="NAME" type="VARCHAR(255)"/>
</createTable>
</changeSet>

</databaseChangeLog>
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public void testLiquibaseQuarkusFunctionality() {
.then()
.body(is(
"create-tables-1,test-1,create-view-inline,create-view-file-abs,create-view-file-rel,"
+ "includeAll-1,includeAll-2,"
+ "json-create-tables-1,json-test-1,"
+ "sql-create-tables-1,sql-test-1,"
+ "yaml-create-tables-1,yaml-test-1,"
Expand Down

0 comments on commit 153161c

Please sign in to comment.