diff --git a/.github/workflows/aws-weekly.yml b/.github/workflows/aws-weekly.yml index 4b49be220..9a940ce5a 100644 --- a/.github/workflows/aws-weekly.yml +++ b/.github/workflows/aws-weekly.yml @@ -23,14 +23,14 @@ on: databases: description: Databases to start up. Comma separated list of "name:version" required: true - default: "[\"postgresql:12\",\"postgresql:13\",\"postgresql:14\",\"oracle:aws_19\",\"mariadb:aws_10.6\",\"mysql:aws\",\"mysql:aurora\",\"mssql:2019\",\"postgresql:aurora\"]" + default: "[\"postgresql:12\",\"postgresql:13\",\"postgresql:14\",\"oracle:aws_19\",\"mariadb:aws_10.6\",\"mysql:aws\",\"mysql:aurora\",\"mssql:aws_2019\",\"postgresql:aurora\"]" jobs: setup: name: Setup runs-on: ubuntu-latest outputs: - databases: ${{ github.event.inputs.databases || '["postgresql:12","postgresql:13","postgresql:14","oracle:aws_19","mariadb:aws_10.6","mysql:aws","mysql:aurora","mssql:2019","postgresql:aurora"]' }} + databases: ${{ github.event.inputs.databases || '["postgresql:12","postgresql:13","postgresql:14","oracle:aws_19","mariadb:aws_10.6","mysql:aws","mysql:aurora","mssql:aws_2019","postgresql:aurora"]' }} testClasses: ${{ inputs.testClasses || 'LiquibaseHarnessSuiteTest' }} steps: - name: Checkout diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml index 96bb7ac35..2f7b77750 100644 --- a/.github/workflows/aws.yml +++ b/.github/workflows/aws.yml @@ -23,7 +23,7 @@ on: databases: description: Databases to start up. Comma separated list of "name:version" required: true - default: "[\"postgresql:12\",\"postgresql:13\",\"postgresql:14\",\"postgresql:16\",\"oracle:aws_19\",\"mariadb:aws_10.6\",\"mysql:aws\",\"mysql:aurora\",\"mssql:2019\",\"postgresql:aurora\"]" + default: "[\"postgresql:12\",\"postgresql:13\",\"postgresql:14\",\"postgresql:16\",\"oracle:aws_19\",\"mariadb:aws_10.6\",\"mysql:aws\",\"mysql:aurora\",\"mssql:aws_2019\",\"postgresql:aurora\"]" jobs: setup: @@ -31,7 +31,7 @@ jobs: runs-on: ubuntu-latest outputs: databases: ${{ github.event.inputs.databases || '["postgresql:12","postgresql:13","postgresql:14","postgresql:16","oracle:aws_19", - "mariadb:aws_10.6","mysql:aws","mysql:aurora","mssql:2019","postgresql:aurora"]' }} + "mariadb:aws_10.6","mysql:aws","mysql:aurora","mssql:aws_2019","postgresql:aurora"]' }} testClasses: ${{ inputs.testClasses || 'LiquibaseHarnessSuiteTest' }} steps: - name: Checkout @@ -52,7 +52,7 @@ jobs: uses: actions/checkout@v4 - name: Setup Python - uses: actions/setup-python@v5.2.0 + uses: actions/setup-python@v5.3.0 with: python-version: '3.11.5' @@ -195,7 +195,7 @@ jobs: sleep 30 liquibase --classpath="src/test/resources/init-changelogs/aws" --changeLogFile="${{ steps.setup.outputs.databasePlatform }}.sql" --username="root" --password="${{ env.TH_DB_PASSWD }}" --url="$mysql_url" update - - uses: liquibase-github-actions/drop-all@v4.29.2 + - uses: liquibase-github-actions/drop-all@v4.30.0 if: ${{ steps.setup.outputs.databasePlatform == 'oracle' }} with: url: "${{ secrets.TH_ORACLEURL_19 }}" diff --git a/.github/workflows/azure.yml b/.github/workflows/azure.yml index ad97c5b51..fd840e34c 100644 --- a/.github/workflows/azure.yml +++ b/.github/workflows/azure.yml @@ -56,7 +56,7 @@ jobs: run: lpm update && lpm add mysql - name: Clean Azure MySQL Database - uses: liquibase-github-actions/drop-all@v4.29.2 + uses: liquibase-github-actions/drop-all@v4.30.0 if: ${{ matrix.database == 'mysql' }} with: url: "${{secrets.TH_AZURE_MYSQL_URL}}" @@ -98,7 +98,7 @@ jobs: core.setOutput("databaseVersion", splitValues[1]); - name: Azure MSSQL dropAll - uses: liquibase-github-actions/drop-all@v4.29.2 + uses: liquibase-github-actions/drop-all@v4.30.0 if: ${{ steps.setup.outputs.databasePlatform == 'mssql' && steps.setup.outputs.databaseVersion == 'azure' }} with: url: "${{secrets.TH_AZURE_URL}}" @@ -120,7 +120,7 @@ jobs: url: "${{secrets.TH_AZURE_URL}}" - name: Azure MSSQL MI dropAll - uses: liquibase-github-actions/drop-all@v4.29.2 + uses: liquibase-github-actions/drop-all@v4.30.0 if: ${{ steps.setup.outputs.databasePlatform == 'mssql' && steps.setup.outputs.databaseVersion == 'mi' }} with: url: "${{secrets.TH_AZURE_MSSQL_MI_URL}}" @@ -142,7 +142,7 @@ jobs: url: "${{secrets.TH_AZURE_MSSQL_MI_URL}}" - name: Azure PostgreSQL Single Server dropAll - uses: liquibase-github-actions/drop-all@v4.29.2 + uses: liquibase-github-actions/drop-all@v4.30.0 if: ${{ steps.setup.outputs.databasePlatform == 'postgresql' && steps.setup.outputs.databaseVersion == 'azure' }} with: url: "${{secrets.TH_AZURE_POSTGRESQL_URL}}" @@ -209,7 +209,7 @@ jobs: uses: actions/checkout@v4 - name: Azure PostgreSQL Flexible Server dropAll - uses: liquibase-github-actions/drop-all@v4.29.2 + uses: liquibase-github-actions/drop-all@v4.30.0 with: url: ${{ secrets[env.TH_AZURE_POSTGRESQL_FLEXIBLE_SERVER_URL] }} username: "${{secrets.TH_DB_ADMIN}}" diff --git a/.github/workflows/gcp.yml b/.github/workflows/gcp.yml index 2eccac97b..927d355ac 100644 --- a/.github/workflows/gcp.yml +++ b/.github/workflows/gcp.yml @@ -57,7 +57,7 @@ jobs: run: lpm update && lpm add mysql - name: Clean GCP MySQL Database - uses: liquibase-github-actions/drop-all@v4.29.2 + uses: liquibase-github-actions/drop-all@v4.30.0 if: ${{ matrix.version == 'gcp' }} with: url: "${{ secrets.TH_GCP_MYSQL_8_0_URL }}" @@ -92,7 +92,7 @@ jobs: core.setOutput("databasePlatform", splitValues[0]); core.setOutput("databaseVersion", splitValues[1]); - - uses: liquibase-github-actions/drop-all@v4.29.2 + - uses: liquibase-github-actions/drop-all@v4.30.0 if: ${{ steps.setup.outputs.databasePlatform == 'postgresql' }} with: url: "${{ secrets[format('TH_GCP_POSTGRESQL_{0}_URL', steps.setup.outputs.databaseVersion)] }}" @@ -112,7 +112,7 @@ jobs: password: "${{secrets.TH_DB_PASSWD}}" url: "${{ secrets[format('TH_GCP_POSTGRESQL_{0}_URL', steps.setup.outputs.databaseVersion)] }}" - - uses: liquibase-github-actions/drop-all@v4.29.2 + - uses: liquibase-github-actions/drop-all@v4.30.0 if: ${{ steps.setup.outputs.databasePlatform == 'mssql' }} with: url: "${{ secrets.TH_GCP_MSSQL_2019_URL }}" @@ -156,6 +156,7 @@ jobs: if: ${{ steps.setup.outputs.databasePlatform == 'mssql' }} env: LIQUIBASE_PRO_LICENSE_KEY: ${{ secrets.LICENSE_KEY }} + LIQUIBASE_LIQUIBASE_SCHEMA_NAME: lbuser run: mvn -Dtest=${{ needs.setup.outputs.testClasses }} -DconfigFile=/harness-config-cloud.yml -DdbName=${{ steps.setup.outputs.databasePlatform }} -DdbVersion=${{ steps.setup.outputs.databaseVersion }} -Dprefix=gcp -DdbUsername=${{secrets.TH_DB_ADMIN}} -DdbPassword=${{secrets.TH_DB_PASSWD}} -DdbUrl='${{ secrets.TH_GCP_MSSQL_2019_URL }}' test - name: Archive GCP ${{ steps.setup.outputs.databasePlatform }}-${{ steps.setup.outputs.databaseVersion }} Test Results diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a1bb95252..9de4e8154 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -59,6 +59,7 @@ on: "mysql-8", "percona-xtradb-cluster-5.7", "percona-xtradb-cluster-8.0", + "percona-xtradb-cluster-8.4", "postgres-12", "postgres-13", "postgres-14", @@ -93,7 +94,9 @@ on: "hsqldb-2.5", "firebird-3", "firebird-4", - "db2-luw" + "db2-luw", + "informix-12.10", + "informix-14.10" ] jobs: @@ -106,7 +109,7 @@ jobs: setup: name: Setup needs: authorize - runs-on: ubuntu-22.04 + runs-on: ubuntu-20.04 env: GITHUB_TOKEN: ${{ secrets.INSTALL_SNAPSHOT_LIQUIBASE }} outputs: @@ -114,11 +117,11 @@ jobs: liquibaseBranch: ${{ steps.configure-build.outputs.liquibaseBranch }} liquibaseRepo: ${{ steps.configure-build.outputs.liquibaseRepo }} liquibaseSha: ${{ steps.configure-build.outputs.liquibaseSha }} - databases: ${{ github.event.inputs.databases || '["mysql-5.6","mysql-5.7","mysql-8","percona-xtradb-cluster-5.7","percona-xtradb-cluster-8.0", + databases: ${{ github.event.inputs.databases || '["mysql-5.6","mysql-5.7","mysql-8","percona-xtradb-cluster-5.7","percona-xtradb-cluster-8.0","percona-xtradb-cluster-8.4", "postgres-12","postgres-13","postgres-14","postgres-15","postgres-16","mariadb-10.2","mariadb-10.3","mariadb-10.4","mariadb-10.5","mariadb-10.6", - "mariadb-10.7","mssql-2017","mssql-2019","mssql-2022","H2Database-2.2","crdb-23.1","crdb-23.2","crdb-24.1", + "mariadb-10.7","mssql-2017","H2Database-2.2","crdb-23.1","crdb-23.2","crdb-24.1", "edb-postgres-12","edb-postgres-13","edb-postgres-14","edb-postgres-15","edb-postgres-16", - "edb-edb-12","edb-edb-13","edb-edb-14","edb-edb-15","edb-edb-16","derby","sqlite","hsqldb-2.4","hsqldb-2.5","firebird-3","firebird-4","db2-luw"]' }} + "edb-edb-12","edb-edb-13","edb-edb-14","edb-edb-15","edb-edb-16","derby","sqlite","hsqldb-2.4","hsqldb-2.5","firebird-3","firebird-4","db2-luw","informix-12.10","informix-14.10"]' }} testClasses: ${{ inputs.testClasses || 'LiquibaseHarnessSuiteTest' }} steps: - uses: actions/checkout@v4 diff --git a/README.extensions.md b/README.extensions.md index 25434b3d4..e38db0b63 100644 --- a/README.extensions.md +++ b/README.extensions.md @@ -53,6 +53,11 @@ This suite will run the Base Harness Test Suite. Please note the name of the tes - If you are creating a new extension to work with Liquibase, it is advisable to start with the Foundational Level Test. - See https://github.com/liquibase/liquibase-test-harness#foundationaltest for a description of what this test validates. +- Override input files if needed. + - to override input changelog put it into the path like src/test/resources/liquibase/harness/compatibility/foundational/changelogs/{database_name}/createTable.xml + - to override checkingSql for 'createTable' changelog, put it into the path like src/test/resources/liquibase/harness/compatibility/foundational/checkingSql/createTable/{database_name}/createTableXml.sql + - to override expected snapshot of DBCL table data for 'createTable' put it into the path like src/test/resources/liquibase/harness/compatibility/foundational/expectedResultSet/{database_name}/createTable.json + - *{database_name}* represent value for database_name from harness-config.yml - In your `src/test/groovy/ext` directory, create a file with this inclusion: ``` diff --git a/README.md b/README.md index 37fe945d2..42547cdde 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ it is not present in test**) As far as this test validates work of basic Liquibase functions it is essential to keep its configuration as simple as possible: 1. If you have your database instance up and running you need to just add appropriate configuration details to `src/test/resources/harness-config.yml` file. Following the example: - - **name**: `database_name` (**mandatory**)
+ - **name**: `database_name` (**mandatory**) - is used in test input files structure to override default files
**version**: `database_version` (optional)
**prefix**: `local` (optional parameter required for CI/CD tests, leave it empty or set `local`)
**url**: `db_connection_url` (**mandatory**)
diff --git a/pom.xml b/pom.xml index 9651fd87c..7dc8eead7 100644 --- a/pom.xml +++ b/pom.xml @@ -17,9 +17,9 @@ [4.26.0,) 3.3.1 - 4.0.1 - 5.11.2 - 1.11.2 + 4.1.1 + 5.11.4 + 1.11.4 Liquibase.org @@ -89,7 +89,7 @@ org.apache.groovy groovy-all - 4.0.23 + 4.0.24 pom @@ -157,7 +157,7 @@ commons-io commons-io - 2.17.0 + 2.18.0 org.postgresql @@ -174,19 +174,24 @@ org.mariadb.jdbc mariadb-java-client - 3.4.1 + 3.5.1 test com.oracle.database.jdbc ojdbc8 - 19.24.0.0 + 19.25.0.0 com.microsoft.sqlserver mssql-jdbc 12.8.1.jre11 + + com.ibm.informix + jdbc + 4.50.11 + com.h2database h2 @@ -196,7 +201,7 @@ org.xerial sqlite-jdbc - 3.46.1.3 + 3.47.2.0 test @@ -217,19 +222,19 @@ org.hsqldb hsqldb - 2.7.3 + 2.7.4 test net.snowflake snowflake-jdbc - 3.19.0 + 3.21.0 test org.firebirdsql.jdbc jaybird - 5.0.5.java11 + 5.0.6.java11 @@ -291,14 +296,19 @@ dom 2.3.0-jaxb-1.0.6 - + + org.liquibase.ext + liquibase-disable-analytics + 1.0.0 + test + org.liquibase.ext liquibase-sdk-maven-plugin - 0.10.23 + 0.10.25 ${env.GITHUB_TOKEN} bin @@ -309,7 +319,7 @@ org.codehaus.mojo versions-maven-plugin - 2.17.1 + 2.18.0 false @@ -373,12 +383,12 @@ org.apache.maven.plugins maven-failsafe-plugin - 3.5.1 + 3.5.2 org.apache.maven.plugins maven-javadoc-plugin - 3.10.1 + 3.11.2 false Liquibase Test Harness ${project.version} @@ -432,7 +442,7 @@ org.apache.maven.plugins maven-surefire-plugin - 3.5.1 + 3.5.2 diff --git a/src/main/groovy/liquibase/harness/compatibility/foundational/FoundationalTest.groovy b/src/main/groovy/liquibase/harness/compatibility/foundational/FoundationalTest.groovy index f9cd7e16c..155c3e750 100644 --- a/src/main/groovy/liquibase/harness/compatibility/foundational/FoundationalTest.groovy +++ b/src/main/groovy/liquibase/harness/compatibility/foundational/FoundationalTest.groovy @@ -37,40 +37,40 @@ class FoundationalTest extends Specification { def "apply #testInput.change against #testInput.databaseName #testInput.version"() { given: "read input data" + String basePath = "liquibase/harness/compatibility/foundational/" + String expectedResultSet = getJSONFileContent(testInput.change, testInput.databaseName, testInput.version, - "liquibase/harness/compatibility/foundational/expectedResultSet") + "${basePath}/expectedResultSet") Map argsMap = new HashMap() argsMap.put("url", testInput.url) argsMap.put("username", testInput.username) argsMap.put("password", testInput.password) - String basePath = "liquibase/harness/compatibility/foundational/" ArrayList changelogList = new ArrayList<>() - changelogList.add("${basePath}changelogs/${testInput.change}.xml") - changelogList.add("${basePath}changelogs/${testInput.change}.yml") - changelogList.add("${basePath}changelogs/${testInput.change}.json") - changelogList.add("${basePath}changelogs/${testInput.change}.sql") + changelogList.add(testInput.xmlChange) + changelogList.add(testInput.jsonChange) + changelogList.add(testInput.ymlChange) + changelogList.add(testInput.sqlChange) ArrayList checkingSqlList = new ArrayList<>() - checkingSqlList.add(getResourceContent("/${basePath}checkingSql/${testInput.change}/${testInput.change}Xml.sql")) - checkingSqlList.add(getResourceContent("/${basePath}checkingSql/${testInput.change}/${testInput.change}Yaml.sql")) - checkingSqlList.add(getResourceContent("/${basePath}checkingSql/${testInput.change}/${testInput.change}Json.sql")) - checkingSqlList.add(getResourceContent("/${basePath}checkingSql/${testInput.change}/${testInput.change}Sql.sql")) + checkingSqlList.add(getFileContent(testInput.change, testInput.databaseName, testInput.version, "/${basePath}checkingSql/${testInput.change}", "Xml.sql")) + checkingSqlList.add(getFileContent(testInput.change, testInput.databaseName, testInput.version, "/${basePath}checkingSql/${testInput.change}","Yaml.sql")) + checkingSqlList.add(getFileContent(testInput.change, testInput.databaseName, testInput.version, "/${basePath}checkingSql/${testInput.change}","Json.sql")) + checkingSqlList.add(getFileContent(testInput.change, testInput.databaseName, testInput.version, "/${basePath}checkingSql/${testInput.change}","Sql.sql")) boolean shouldRunChangeSet and: "fail test if expectedResultSet is not provided" shouldRunChangeSet = expectedResultSet != null assert shouldRunChangeSet: "No expectedResultSet for ${testInput.change} against " + - "${testInput.database.shortName} ${testInput.database.databaseMajorVersion}." + - "${testInput.database.databaseMinorVersion}" + "${testInput.databaseName} ${testInput.version}." and: "check database under test is online" def connection = testInput.database.getConnection() shouldRunChangeSet = connection instanceof JdbcConnection assert shouldRunChangeSet: "Database ${testInput.databaseName} ${testInput.version} is offline!" - and: "execute Liquibase validate command to ensure a chagelog is valid" + and: "execute Liquibase validate command to ensure a changelog is valid" for (int i = 0; i < changelogList.size(); i++) { argsMap.put("changeLogFile", changelogList.get(i)) executeCommandScope("validate", argsMap) @@ -106,6 +106,8 @@ class FoundationalTest extends Specification { if (shouldOpenNewConnection(connection, "sqlite")) { newConnection = DriverManager.getConnection(testInput.url, testInput.username, testInput.password) resultSet = newConnection.createStatement().executeQuery("SELECT * FROM DATABASECHANGELOG") + } else if (shouldOpenNewConnection(connection, "informix")) { + resultSet = ((JdbcConnection) connection).createStatement().executeQuery("SELECT * FROM DATABASECHANGELOG") } else { resultSet = ((JdbcConnection) connection).createStatement().executeQuery("SELECT * FROM DATABASECHANGELOG") connection.autoCommit ?: connection.commit() diff --git a/src/main/groovy/liquibase/harness/compatibility/foundational/FoundationalTestHelper.groovy b/src/main/groovy/liquibase/harness/compatibility/foundational/FoundationalTestHelper.groovy index a0ad3f87a..534b9e68c 100644 --- a/src/main/groovy/liquibase/harness/compatibility/foundational/FoundationalTestHelper.groovy +++ b/src/main/groovy/liquibase/harness/compatibility/foundational/FoundationalTestHelper.groovy @@ -48,6 +48,10 @@ class FoundationalTestHelper { .password(databaseUnderTest.password) .version(databaseUnderTest.version) .change(changeLogEntry.key) + .xmlChange(FileUtils.resolveInputFilePaths(databaseUnderTest, baseChangelogPath, "xml").get(changeLogEntry.key)) + .jsonChange(FileUtils.resolveInputFilePaths(databaseUnderTest, baseChangelogPath, "json").get(changeLogEntry.key)) + .ymlChange(FileUtils.resolveInputFilePaths(databaseUnderTest, baseChangelogPath, "yml").get(changeLogEntry.key)) + .sqlChange(FileUtils.resolveInputFilePaths(databaseUnderTest, baseChangelogPath, "sql").get(changeLogEntry.key)) .database(databaseUnderTest.database) .build()) } @@ -80,6 +84,10 @@ class FoundationalTestHelper { String url String dbSchema String change + String xmlChange + String jsonChange + String ymlChange + String sqlChange Database database } } diff --git a/src/main/groovy/liquibase/harness/generateChangelog/GenerateChangelogTest.groovy b/src/main/groovy/liquibase/harness/generateChangelog/GenerateChangelogTest.groovy index 63df90d9b..902a90692 100644 --- a/src/main/groovy/liquibase/harness/generateChangelog/GenerateChangelogTest.groovy +++ b/src/main/groovy/liquibase/harness/generateChangelog/GenerateChangelogTest.groovy @@ -66,12 +66,13 @@ class GenerateChangelogTest extends Specification { when: "execute generateChangelog command using different changelog formats" argsMap.put("changeLogFile", testInput.xmlChangelogPath) executeCommandScope("update", argsMap) - argsMap.put("changeLogFile", resourcesDirFullPath + entry.value) argsMap.put("excludeObjects", "(?i)posts, (?i)authors")//excluding static test-harness objects from generated changelog if (entry.key.equalsIgnoreCase("expectedSqlChangelog")) { def shortDbName = getShortDatabaseName(testInput.databaseName) sqlSpecificChangelogFile = entry.value.replace(".sql", ".$shortDbName" + ".sql") - argsMap.put("changeLogFile", resourcesDirFullPath + sqlSpecificChangelogFile) + argsMap.put("changeLogFile", resourcesDirFullPath + "generated/" + sqlSpecificChangelogFile) + } else { + argsMap.put("changeLogFile", resourcesDirFullPath + "generated/" + entry.value) } executeCommandScope("generateChangelog", argsMap, testInput.databaseName) @@ -128,9 +129,9 @@ class GenerateChangelogTest extends Specification { } for (Map.Entry entry : map.entrySet()) { if (entry.key.equalsIgnoreCase("expectedSqlChangelog")) { - deleteFile(resourcesDirFullPath + sqlSpecificChangelogFile) + deleteFile(resourcesDirFullPath + "generated/" + sqlSpecificChangelogFile) } else { - deleteFile(resourcesDirFullPath + entry.value) + deleteFile(resourcesDirFullPath + "generated/" + entry.value) } } diff --git a/src/main/groovy/liquibase/harness/util/FileUtils.groovy b/src/main/groovy/liquibase/harness/util/FileUtils.groovy index c84c1a367..257610150 100644 --- a/src/main/groovy/liquibase/harness/util/FileUtils.groovy +++ b/src/main/groovy/liquibase/harness/util/FileUtils.groovy @@ -84,7 +84,7 @@ class FileUtils { return true } - private static String getFileContent(String change, String databaseName, String version , String expectedFolder, + static String getFileContent(String change, String databaseName, String version , String expectedFolder, String fileExtension) { def resourceAccessor = TestConfig.instance.resourceAccessor diff --git a/src/main/resources/liquibase/harness/change/changelogs/informix/addDefaultValueComputed.xml b/src/main/resources/liquibase/harness/change/changelogs/informix/addDefaultValueComputed.xml new file mode 100644 index 000000000..a78dd036f --- /dev/null +++ b/src/main/resources/liquibase/harness/change/changelogs/informix/addDefaultValueComputed.xml @@ -0,0 +1,14 @@ + + + + + + + diff --git a/src/main/resources/liquibase/harness/change/changelogs/informix/addDefaultValueDate.xml b/src/main/resources/liquibase/harness/change/changelogs/informix/addDefaultValueDate.xml new file mode 100644 index 000000000..56dbaf9f7 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/changelogs/informix/addDefaultValueDate.xml @@ -0,0 +1,16 @@ + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/changelogs/informix/addDefaultValueNumeric.xml b/src/main/resources/liquibase/harness/change/changelogs/informix/addDefaultValueNumeric.xml new file mode 100644 index 000000000..f714b52c8 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/changelogs/informix/addDefaultValueNumeric.xml @@ -0,0 +1,16 @@ + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/changelogs/informix/alterSequence.xml b/src/main/resources/liquibase/harness/change/changelogs/informix/alterSequence.xml new file mode 100644 index 000000000..bad59e011 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/changelogs/informix/alterSequence.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/harness/change/changelogs/informix/createFunction.xml b/src/main/resources/liquibase/harness/change/changelogs/informix/createFunction.xml new file mode 100644 index 000000000..68a42ec7b --- /dev/null +++ b/src/main/resources/liquibase/harness/change/changelogs/informix/createFunction.xml @@ -0,0 +1,24 @@ + + + + CREATE FUNCTION test_function() + RETURNS BOOLEAN + LANGUAGE SPL + BEGIN + LET trace_message = 'Test function executed'; + TRACE trace_message; + RETURN TRUE; -- Use TRUE or appropriate value as needed. + END; + + + + + + \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/changelogs/informix/createPackage.xml b/src/main/resources/liquibase/harness/change/changelogs/informix/createPackage.xml new file mode 100644 index 000000000..600825143 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/changelogs/informix/createPackage.xml @@ -0,0 +1,23 @@ + + + + + CREATE FUNCTION test_function() + RETURNS BOOLEAN + LANGUAGE SPL + BEGIN + LET trace_message = 'Test function executed'; + TRACE trace_message; + RETURN TRUE; -- Use TRUE or appropriate value as needed. + END; + + + + + \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/changelogs/informix/createPackageBody.xml b/src/main/resources/liquibase/harness/change/changelogs/informix/createPackageBody.xml new file mode 100644 index 000000000..804a87ec2 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/changelogs/informix/createPackageBody.xml @@ -0,0 +1,23 @@ + + + + + CREATE FUNCTION test_function() + RETURNS BOOLEAN + LANGUAGE SPL + BEGIN + LET trace_message = 'Test function executed'; + TRACE trace_message; + RETURN TRUE; -- Use TRUE or appropriate value as needed. + END; + + + + + \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/changelogs/informix/createProcedure.txt b/src/main/resources/liquibase/harness/change/changelogs/informix/createProcedure.txt new file mode 100644 index 000000000..460b62ee9 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/changelogs/informix/createProcedure.txt @@ -0,0 +1,3 @@ +CREATE PROCEDURE test_procedure ( per_cent INT) + UPDATE stock SET unit_price = unit_price + (unit_price * (per_cent/100) ); + END PROCEDURE \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/changelogs/informix/createProcedure.xml b/src/main/resources/liquibase/harness/change/changelogs/informix/createProcedure.xml new file mode 100644 index 000000000..06be7d70c --- /dev/null +++ b/src/main/resources/liquibase/harness/change/changelogs/informix/createProcedure.xml @@ -0,0 +1,20 @@ + + + + + test procedure + CREATE PROCEDURE test_procedure ( per_cent INT) + UPDATE stock SET unit_price = unit_price + (unit_price * (per_cent/100) ); + END PROCEDURE + + + + + + \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/changelogs/informix/createProcedureFromFile.xml b/src/main/resources/liquibase/harness/change/changelogs/informix/createProcedureFromFile.xml new file mode 100644 index 000000000..bb701454f --- /dev/null +++ b/src/main/resources/liquibase/harness/change/changelogs/informix/createProcedureFromFile.xml @@ -0,0 +1,20 @@ + + + + + test procedure + + + + + + + \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/changelogs/informix/createSequence.xml b/src/main/resources/liquibase/harness/change/changelogs/informix/createSequence.xml new file mode 100644 index 000000000..8004e4a07 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/changelogs/informix/createSequence.xml @@ -0,0 +1,19 @@ + + + + + + + + + + diff --git a/src/main/resources/liquibase/harness/change/changelogs/informix/createTrigger.xml b/src/main/resources/liquibase/harness/change/changelogs/informix/createTrigger.xml new file mode 100644 index 000000000..045de2e60 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/changelogs/informix/createTrigger.xml @@ -0,0 +1,40 @@ + + + + test procedure + CREATE FUNCTION test_function() + RETURNS BOOLEAN + LANGUAGE SPL + BEGIN + LET trace_message = 'Test function executed'; + TRACE trace_message; + RETURN TRUE; + END; + + + DROP FUNCTION test_function() + + + + CREATE TRIGGER test_trigger + BEFORE INSERT ON your_table_name + FOR EACH ROW + EXECUTE FUNCTION test_function(); + + + + + + \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/changelogs/informix/dropDefaultValue.xml b/src/main/resources/liquibase/harness/change/changelogs/informix/dropDefaultValue.xml new file mode 100644 index 000000000..6fbbe9e5b --- /dev/null +++ b/src/main/resources/liquibase/harness/change/changelogs/informix/dropDefaultValue.xml @@ -0,0 +1,16 @@ + + + + + + + + + diff --git a/src/main/resources/liquibase/harness/change/changelogs/informix/dropProcedure.xml b/src/main/resources/liquibase/harness/change/changelogs/informix/dropProcedure.xml new file mode 100644 index 000000000..07f4e9a8c --- /dev/null +++ b/src/main/resources/liquibase/harness/change/changelogs/informix/dropProcedure.xml @@ -0,0 +1,19 @@ + + + + + test procedure + + + + + + diff --git a/src/main/resources/liquibase/harness/change/changelogs/informix/dropSequence.xml b/src/main/resources/liquibase/harness/change/changelogs/informix/dropSequence.xml new file mode 100644 index 000000000..ce8b16bdd --- /dev/null +++ b/src/main/resources/liquibase/harness/change/changelogs/informix/dropSequence.xml @@ -0,0 +1,18 @@ + + + + + + + + + diff --git a/src/main/resources/liquibase/harness/change/changelogs/informix/dropTrigger.xml b/src/main/resources/liquibase/harness/change/changelogs/informix/dropTrigger.xml new file mode 100644 index 000000000..2d960c438 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/changelogs/informix/dropTrigger.xml @@ -0,0 +1,42 @@ + + + + test procedure + CREATE FUNCTION test_function() + RETURNS BOOLEAN + LANGUAGE SPL + BEGIN + LET trace_message = 'Test function executed'; + TRACE trace_message; + RETURN TRUE; + END; + + + DROP FUNCTION test_function() + + + + CREATE TRIGGER test_trigger + BEFORE INSERT ON your_table_name + FOR EACH ROW + EXECUTE FUNCTION test_function(); + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/changelogs/percona-xtradb-cluster/8.4/createFunction.xml b/src/main/resources/liquibase/harness/change/changelogs/percona-xtradb-cluster/8.4/createFunction.xml new file mode 100644 index 000000000..d84858d59 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/changelogs/percona-xtradb-cluster/8.4/createFunction.xml @@ -0,0 +1,26 @@ + + + + SET GLOBAL log_bin_trust_function_creators = 1; + + + + CREATE FUNCTION test_function() + RETURNS VARCHAR(20) + BEGIN + RETURN 'Hello'; + END + + + + + + \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/changelogs/percona-xtradb-cluster/8.4/dropFunction.xml b/src/main/resources/liquibase/harness/change/changelogs/percona-xtradb-cluster/8.4/dropFunction.xml new file mode 100644 index 000000000..a89e30de5 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/changelogs/percona-xtradb-cluster/8.4/dropFunction.xml @@ -0,0 +1,28 @@ + + + + SET GLOBAL log_bin_trust_function_creators = 1; + + + + CREATE FUNCTION test_function() + RETURNS VARCHAR(20) + BEGIN + RETURN 'Hello'; + END + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/informix/addDefaultValue.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/informix/addDefaultValue.json new file mode 100644 index 000000000..cb6558445 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSnapshot/informix/addDefaultValue.json @@ -0,0 +1,15 @@ +{ + "snapshot": { + "objects": { + "liquibase.structure.core.Column": [ + { + "column": { + "defaultValue": "title_test", + "name": "title", + "nullable": true + } + } + ] + } + } +} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/informix/addDefaultValueBoolean.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/informix/addDefaultValueBoolean.json new file mode 100644 index 000000000..658445dfc --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSnapshot/informix/addDefaultValueBoolean.json @@ -0,0 +1,15 @@ +{ + "snapshot": { + "objects": { + "liquibase.structure.core.Column": [ + { + "column": { + "defaultValue": "T\\!\\{liquibase.statement.DatabaseFunction\\}", + "name": "booleancolumn", + "nullable": true + } + } + ] + } + } +} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/informix/addDefaultValueNumeric.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/informix/addDefaultValueNumeric.json new file mode 100644 index 000000000..6a116b302 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSnapshot/informix/addDefaultValueNumeric.json @@ -0,0 +1,15 @@ +{ + "snapshot": { + "objects": { + "liquibase.structure.core.Column": [ + { + "column": { + "defaultValue": "100000000\\!\\{java.lang.Integer\\}", + "name": "numericColumn", + "nullable": true + } + } + ] + } + } +} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/informix/alterSequence.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/informix/alterSequence.json new file mode 100644 index 000000000..f1c16d223 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSnapshot/informix/alterSequence.json @@ -0,0 +1,13 @@ +{ + "snapshot": { + "objects": { + "liquibase.structure.core.Sequence": [ + { + "sequence": { + "name": "test_sequence" + } + } + ] + } + } +} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/informix/createTableTimestamp.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/informix/createTableTimestamp.json new file mode 100644 index 000000000..d7bc4c8f6 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSnapshot/informix/createTableTimestamp.json @@ -0,0 +1,28 @@ +{ + "snapshot": { + "objects": { + "liquibase.structure.core.Table": [ + { + "table": { + "name": "lms_create_table_test" + } + } + ], + "liquibase.structure.core.Column": [ + { + "column": { + "name": "lms_test_id" + } + }, + { + "column": { + "name": "lms_test_timestamp", + "type": { + "typeName": "datetime year to fraction(5)" + } + } + } + ] + } + } +} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/informix/createView.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/informix/createView.json new file mode 100644 index 000000000..4281f444c --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSnapshot/informix/createView.json @@ -0,0 +1,13 @@ +{ + "snapshot": { + "objects": { + "liquibase.structure.core.View": [ + { + "view": { + "definition": "select x0.id, x0.first_name, x0.last_name, x0.email from (select x1.id, x1.first_name, x1.last_name, x1.email from authors x1 ) x0(id, first_name, last_name, email)", + "name": "test_view" + } + }] + } + } +} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/informix/dropDefaultValue.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/informix/dropDefaultValue.json new file mode 100644 index 000000000..d700c07f7 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSnapshot/informix/dropDefaultValue.json @@ -0,0 +1,17 @@ +{ + "snapshot": { + "objects": { + "liquibase.structure.core.Column": [ + { + "column": { + "name": "title", + "nullable": true, + "type": { + "typeName": "varchar" + } + } + } + ] + } + } +} diff --git a/src/main/resources/liquibase/harness/change/expectedSql/db2-luw/alterSequence.sql b/src/main/resources/liquibase/harness/change/expectedSql/db2-luw/alterSequence.sql index ddd876a09..c046c40e2 100644 --- a/src/main/resources/liquibase/harness/change/expectedSql/db2-luw/alterSequence.sql +++ b/src/main/resources/liquibase/harness/change/expectedSql/db2-luw/alterSequence.sql @@ -1,2 +1,2 @@ -CREATE SEQUENCE "DB2INST1".test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 -ALTER SEQUENCE "DB2INST1".test_sequence INCREMENT BY 10 MINVALUE 1 MAXVALUE 371717 \ No newline at end of file +CREATE SEQUENCE "DB2INST1".test_sequence AS BIGINT START WITH 1 INCREMENT BY 1 MINVALUE 1 +ALTER SEQUENCE "DB2INST1".test_sequence INCREMENT BY 10 MINVALUE 1 MAXVALUE 371717 CACHE 371717 \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/db2-luw/createSequence.sql b/src/main/resources/liquibase/harness/change/expectedSql/db2-luw/createSequence.sql index c86460bb8..2d6d2cdde 100644 --- a/src/main/resources/liquibase/harness/change/expectedSql/db2-luw/createSequence.sql +++ b/src/main/resources/liquibase/harness/change/expectedSql/db2-luw/createSequence.sql @@ -1 +1 @@ -CREATE SEQUENCE "DB2INST1".test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 \ No newline at end of file +CREATE SEQUENCE "DB2INST1".test_sequence AS BIGINT START WITH 1 INCREMENT BY 1 MINVALUE 1 \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/db2-luw/dropSequence.sql b/src/main/resources/liquibase/harness/change/expectedSql/db2-luw/dropSequence.sql index 1f511cb1a..7834bf63d 100644 --- a/src/main/resources/liquibase/harness/change/expectedSql/db2-luw/dropSequence.sql +++ b/src/main/resources/liquibase/harness/change/expectedSql/db2-luw/dropSequence.sql @@ -1,2 +1,2 @@ -CREATE SEQUENCE "DB2INST1".test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 +CREATE SEQUENCE "DB2INST1".test_sequence AS BIGINT START WITH 1 INCREMENT BY 1 MINVALUE 1 DROP SEQUENCE "DB2INST1".test_sequence \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/hsqldb/alterSequence.sql b/src/main/resources/liquibase/harness/change/expectedSql/hsqldb/alterSequence.sql index 59bd771bb..1cf21faba 100644 --- a/src/main/resources/liquibase/harness/change/expectedSql/hsqldb/alterSequence.sql +++ b/src/main/resources/liquibase/harness/change/expectedSql/hsqldb/alterSequence.sql @@ -1,5 +1,5 @@ +INVALID TEST -- This changeType is checked in scope of ChangeDataTests because there is no way to verify it by snapshotting DB. -- Verification require running query and ChangeDataTests is able to do it -- that's why it is marked as -INVALID TEST -- for ChangeObjectTest \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/hsqldb/createSequence.sql b/src/main/resources/liquibase/harness/change/expectedSql/hsqldb/createSequence.sql index 9d11cd852..84c006396 100644 --- a/src/main/resources/liquibase/harness/change/expectedSql/hsqldb/createSequence.sql +++ b/src/main/resources/liquibase/harness/change/expectedSql/hsqldb/createSequence.sql @@ -1 +1 @@ -CREATE SEQUENCE PUBLIC.test_sequence AS BIGINT START WITH 1 INCREMENT BY 1 \ No newline at end of file +CREATE SEQUENCE PUBLIC.test_sequence AS BIGINT START WITH 1 INCREMENT BY 1 \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/hsqldb/dropSequence.sql b/src/main/resources/liquibase/harness/change/expectedSql/hsqldb/dropSequence.sql index 160937af7..ff64a49fe 100644 --- a/src/main/resources/liquibase/harness/change/expectedSql/hsqldb/dropSequence.sql +++ b/src/main/resources/liquibase/harness/change/expectedSql/hsqldb/dropSequence.sql @@ -1,2 +1,2 @@ -CREATE SEQUENCE PUBLIC.test_sequence AS BIGINT START WITH 1 INCREMENT BY 1 +CREATE SEQUENCE PUBLIC.test_sequence AS BIGINT START WITH 1 INCREMENT BY 1 DROP SEQUENCE PUBLIC.test_sequence \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/informix/addCheckConstraint.sql b/src/main/resources/liquibase/harness/change/expectedSql/informix/addCheckConstraint.sql new file mode 100644 index 000000000..55a67dde4 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSql/informix/addCheckConstraint.sql @@ -0,0 +1,3 @@ +INVALID TEST + +-- Bug on Liquibase side: Change Type 'pro:addCheckConstraint' is not allowed for Informix Dynamic Server DAT-19230 \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/informix/addDefaultValueComputed.sql b/src/main/resources/liquibase/harness/change/expectedSql/informix/addDefaultValueComputed.sql new file mode 100644 index 000000000..43c1ef09d --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSql/informix/addDefaultValueComputed.sql @@ -0,0 +1,9 @@ +INVALID TEST + +-- Bug on Liquibase side: incorrect generated sql DAT-19231 +-- Actual: +-- ALTER TABLE testdb:informix.posts +-- MODIFY (inserted_date date DEFAULT DATETIME YEAR TO FRACTION(5) DEFAULT CURRENT YEAR TO FRACTION(5)); +-- Expected: +-- ALTER TABLE testdb:informix.posts +-- MODIFY (inserted_date DATETIME YEAR TO FRACTION(5) DEFAULT CURRENT YEAR TO FRACTION(5)); \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/informix/addDefaultValueDate.sql b/src/main/resources/liquibase/harness/change/expectedSql/informix/addDefaultValueDate.sql new file mode 100644 index 000000000..707217485 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSql/informix/addDefaultValueDate.sql @@ -0,0 +1,4 @@ +INVALID TEST + +-- Bug on Liquibase side: Incorrect SQL generated on rollback defaultValueDate DAT-19231 + --[Failed SQL: (-201) ALTER TABLE testdb:informix.authors MODIFY (dateTimeColumn datetime)] \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/informix/addDefaultValueSequenceNext.sql b/src/main/resources/liquibase/harness/change/expectedSql/informix/addDefaultValueSequenceNext.sql new file mode 100644 index 000000000..1982e0a92 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSql/informix/addDefaultValueSequenceNext.sql @@ -0,0 +1,3 @@ +INVALID TEST + +-- Informix does not support using a sequence’s NEXTVAL directly in a DEFAULT clause \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/informix/addUniqueConstraint.sql b/src/main/resources/liquibase/harness/change/expectedSql/informix/addUniqueConstraint.sql new file mode 100644 index 000000000..3874406a3 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSql/informix/addUniqueConstraint.sql @@ -0,0 +1,3 @@ +INVALID TEST + +-- Bug on Liquibase side: Missing UniqueConstraints in Liquibase Snapshot output DAT-19232 \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/informix/createFunction.sql b/src/main/resources/liquibase/harness/change/expectedSql/informix/createFunction.sql new file mode 100644 index 000000000..adaa35efc --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSql/informix/createFunction.sql @@ -0,0 +1,3 @@ +INVALID TEST + +-- Bug on Liquibase side: Change Type 'pro:createFunction' is not allowed for Informix Dynamic Server DAT-19230 \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/informix/createPackage.sql b/src/main/resources/liquibase/harness/change/expectedSql/informix/createPackage.sql new file mode 100644 index 000000000..005138ab2 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSql/informix/createPackage.sql @@ -0,0 +1,3 @@ +INVALID TEST + +-- Informix does not support packages \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/informix/createPackageBody.sql b/src/main/resources/liquibase/harness/change/expectedSql/informix/createPackageBody.sql new file mode 100644 index 000000000..666c7a764 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSql/informix/createPackageBody.sql @@ -0,0 +1,3 @@ +INVALID TEST + +-- Informix does not support package bodies \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/informix/createProcedure.sql b/src/main/resources/liquibase/harness/change/expectedSql/informix/createProcedure.sql new file mode 100644 index 000000000..78b01fd55 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSql/informix/createProcedure.sql @@ -0,0 +1,3 @@ +INVALID TEST + +-- Bug on Liquibase side: Missing Procedures in Liquibase Snapshot output DAT-19232 \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/informix/createProcedureFromFile.sql b/src/main/resources/liquibase/harness/change/expectedSql/informix/createProcedureFromFile.sql new file mode 100644 index 000000000..78b01fd55 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSql/informix/createProcedureFromFile.sql @@ -0,0 +1,3 @@ +INVALID TEST + +-- Bug on Liquibase side: Missing Procedures in Liquibase Snapshot output DAT-19232 \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/informix/createTrigger.sql b/src/main/resources/liquibase/harness/change/expectedSql/informix/createTrigger.sql new file mode 100644 index 000000000..06d0fc77a --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSql/informix/createTrigger.sql @@ -0,0 +1,3 @@ +INVALID TEST + +-- Bug on Liquibase side: Change Type 'pro:createTrigger' is not allowed for Informix Dynamic Server DAT-19230 \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/informix/disableCheckConstraint.sql b/src/main/resources/liquibase/harness/change/expectedSql/informix/disableCheckConstraint.sql new file mode 100644 index 000000000..55a67dde4 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSql/informix/disableCheckConstraint.sql @@ -0,0 +1,3 @@ +INVALID TEST + +-- Bug on Liquibase side: Change Type 'pro:addCheckConstraint' is not allowed for Informix Dynamic Server DAT-19230 \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/informix/disableTrigger.sql b/src/main/resources/liquibase/harness/change/expectedSql/informix/disableTrigger.sql new file mode 100644 index 000000000..06d0fc77a --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSql/informix/disableTrigger.sql @@ -0,0 +1,3 @@ +INVALID TEST + +-- Bug on Liquibase side: Change Type 'pro:createTrigger' is not allowed for Informix Dynamic Server DAT-19230 \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/informix/dropCheckConstraint.sql b/src/main/resources/liquibase/harness/change/expectedSql/informix/dropCheckConstraint.sql new file mode 100644 index 000000000..55a67dde4 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSql/informix/dropCheckConstraint.sql @@ -0,0 +1,3 @@ +INVALID TEST + +-- Bug on Liquibase side: Change Type 'pro:addCheckConstraint' is not allowed for Informix Dynamic Server DAT-19230 \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/informix/dropFunction.sql b/src/main/resources/liquibase/harness/change/expectedSql/informix/dropFunction.sql new file mode 100644 index 000000000..adaa35efc --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSql/informix/dropFunction.sql @@ -0,0 +1,3 @@ +INVALID TEST + +-- Bug on Liquibase side: Change Type 'pro:createFunction' is not allowed for Informix Dynamic Server DAT-19230 \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/informix/dropTrigger.sql b/src/main/resources/liquibase/harness/change/expectedSql/informix/dropTrigger.sql new file mode 100644 index 000000000..06d0fc77a --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSql/informix/dropTrigger.sql @@ -0,0 +1,3 @@ +INVALID TEST + +-- Bug on Liquibase side: Change Type 'pro:createTrigger' is not allowed for Informix Dynamic Server DAT-19230 \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/informix/enableCheckConstraint.sql b/src/main/resources/liquibase/harness/change/expectedSql/informix/enableCheckConstraint.sql new file mode 100644 index 000000000..55a67dde4 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSql/informix/enableCheckConstraint.sql @@ -0,0 +1,3 @@ +INVALID TEST + +-- Bug on Liquibase side: Change Type 'pro:addCheckConstraint' is not allowed for Informix Dynamic Server DAT-19230 \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/informix/enableTrigger.sql b/src/main/resources/liquibase/harness/change/expectedSql/informix/enableTrigger.sql new file mode 100644 index 000000000..06d0fc77a --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSql/informix/enableTrigger.sql @@ -0,0 +1,3 @@ +INVALID TEST + +-- Bug on Liquibase side: Change Type 'pro:createTrigger' is not allowed for Informix Dynamic Server DAT-19230 \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/informix/renameSequence.sql b/src/main/resources/liquibase/harness/change/expectedSql/informix/renameSequence.sql new file mode 100644 index 000000000..71f844506 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSql/informix/renameSequence.sql @@ -0,0 +1,3 @@ +INVALID TEST + +-- Informix does not support renameSequence \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/informix/renameTrigger.sql b/src/main/resources/liquibase/harness/change/expectedSql/informix/renameTrigger.sql new file mode 100644 index 000000000..06d0fc77a --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSql/informix/renameTrigger.sql @@ -0,0 +1,3 @@ +INVALID TEST + +-- Bug on Liquibase side: Change Type 'pro:createTrigger' is not allowed for Informix Dynamic Server DAT-19230 \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/informix/renameView.sql b/src/main/resources/liquibase/harness/change/expectedSql/informix/renameView.sql new file mode 100644 index 000000000..5a466f774 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSql/informix/renameView.sql @@ -0,0 +1,3 @@ +INVALID TEST + +-- Informix does not support renameView \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/informix/setColumnRemarks.sql b/src/main/resources/liquibase/harness/change/expectedSql/informix/setColumnRemarks.sql new file mode 100644 index 000000000..b6af43a36 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSql/informix/setColumnRemarks.sql @@ -0,0 +1,3 @@ +INVALID TEST + +-- Informix does not support setColumnRemarks \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/informix/setTableRemarks.sql b/src/main/resources/liquibase/harness/change/expectedSql/informix/setTableRemarks.sql new file mode 100644 index 000000000..dc4c06138 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSql/informix/setTableRemarks.sql @@ -0,0 +1,3 @@ +INVALID TEST + +-- Informix does not support setTableRemarks \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/mssql/alterSequence.sql b/src/main/resources/liquibase/harness/change/expectedSql/mssql/alterSequence.sql index e3711211d..b56c8ce52 100644 --- a/src/main/resources/liquibase/harness/change/expectedSql/mssql/alterSequence.sql +++ b/src/main/resources/liquibase/harness/change/expectedSql/mssql/alterSequence.sql @@ -1,2 +1,2 @@ CREATE SEQUENCE test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 -ALTER SEQUENCE test_sequence INCREMENT BY 10 MINVALUE 1 MAXVALUE 371717 CYCLE \ No newline at end of file +ALTER SEQUENCE test_sequence INCREMENT BY 10 MINVALUE 1 MAXVALUE 371717 CACHE 371717 CYCLE \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/mssql/aws_2019/alterSequence.sql b/src/main/resources/liquibase/harness/change/expectedSql/mssql/aws_2019/alterSequence.sql new file mode 100644 index 000000000..e3711211d --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSql/mssql/aws_2019/alterSequence.sql @@ -0,0 +1,2 @@ +CREATE SEQUENCE test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 +ALTER SEQUENCE test_sequence INCREMENT BY 10 MINVALUE 1 MAXVALUE 371717 CYCLE \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/mssql/azure/alterSequence.sql b/src/main/resources/liquibase/harness/change/expectedSql/mssql/azure/alterSequence.sql new file mode 100644 index 000000000..e3711211d --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSql/mssql/azure/alterSequence.sql @@ -0,0 +1,2 @@ +CREATE SEQUENCE test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 +ALTER SEQUENCE test_sequence INCREMENT BY 10 MINVALUE 1 MAXVALUE 371717 CYCLE \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/mssql/gcp/alterSequence.sql b/src/main/resources/liquibase/harness/change/expectedSql/mssql/gcp/alterSequence.sql new file mode 100644 index 000000000..e3711211d --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSql/mssql/gcp/alterSequence.sql @@ -0,0 +1,2 @@ +CREATE SEQUENCE test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 +ALTER SEQUENCE test_sequence INCREMENT BY 10 MINVALUE 1 MAXVALUE 371717 CYCLE \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/mssql/mi/alterSequence.sql b/src/main/resources/liquibase/harness/change/expectedSql/mssql/mi/alterSequence.sql new file mode 100644 index 000000000..e3711211d --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSql/mssql/mi/alterSequence.sql @@ -0,0 +1,2 @@ +CREATE SEQUENCE test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 +ALTER SEQUENCE test_sequence INCREMENT BY 10 MINVALUE 1 MAXVALUE 371717 CYCLE \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/createTable.json b/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/createTable.json index 1f53313c9..d254274d1 100644 --- a/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/createTable.json +++ b/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/createTable.json @@ -2,7 +2,7 @@ "databaseChangeLog": [ { "changeSet": { - "id": "1", + "id": "2", "author": "as", "labels": "test_label", "context": "test_context", diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/createTable.sql b/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/createTable.sql index 140f7b457..bcb8e9cdd 100644 --- a/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/createTable.sql +++ b/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/createTable.sql @@ -1,6 +1,6 @@ --liquibase formatted sql ---changeset as:1 -context:test_context -labels:test_label +--changeset as:4 -context:test_context -labels:test_label --comment: test_comment CREATE TABLE test_table_sql (test_column INT); diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/createTable.yml b/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/createTable.yml index 309fa2a56..bff1379cf 100644 --- a/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/createTable.yml +++ b/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/createTable.yml @@ -3,7 +3,7 @@ databaseChangeLog: comment: test_comment labels: test_label context: test_context - id: 1 + id: 3 author: as changes: - createTable: diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/cockroachdb/createTable.json b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/cockroachdb/createTable.json index b0f91434d..e4a5478a8 100644 --- a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/cockroachdb/createTable.json +++ b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/cockroachdb/createTable.json @@ -3,50 +3,54 @@ { "comments": "test_comment", "author": "as", + "orderexecuted": 1, "description": "sql", "contexts": "test_context", "exectype": "EXECUTED", "labels": "test_label", - "filename":"liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.xml", - "md5sum": "8:4e697074d57029d3e267ce7507da5cf5", + "filename":"liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.xml", + "md5sum": "9:4a083dae8a82228dbf846133a767d880", "id": "1", "tag": "" }, { "comments": "test_comment", "author": "as", - "description": "createTable tableName=test_table_yaml", + "orderexecuted": 2, + "description": "createTable tableName=test_table_json", "contexts": "test_context", "exectype": "EXECUTED", "labels": "test_label", - "filename":"liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.yml", - "md5sum": "8:13bf5dadad410884e263691bc66ee760", - "id": "1", + "filename":"liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.json", + "md5sum": "9:b93d6668d8df8115b2b634a585875da6", + "id": "2", "tag": "" }, { "comments": "test_comment", "author": "as", - "description": "sql", + "orderexecuted": 3, + "description": "createTable tableName=test_table_yaml", "contexts": "test_context", "exectype": "EXECUTED", "labels": "test_label", - "filename":"liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.sql", - "md5sum": "8:3e89383340c9b7c69e4902c53534b7ac", - "id": "1", - "tag": "test_tag" + "filename":"liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.yml", + "md5sum": "9:7eb68c7a3994f387134835e99cf27a10", + "id": "3", + "tag": "" }, { "comments": "test_comment", "author": "as", - "description": "createTable tableName=test_table_json", + "orderexecuted": 4, + "description": "sql", "contexts": "test_context", "exectype": "EXECUTED", "labels": "test_label", - "filename":"liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.json", - "md5sum": "8:b9ab89365e024967a1da5704f0441428", - "id": "1", - "tag": "" + "filename":"liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.sql", + "md5sum": "9:23305a0f4312264f2bee0e1e23cad5de", + "id": "4", + "tag": "test_tag" } ] } \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/createTable.json b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/createTable.json index 21521884c..3f7258b95 100644 --- a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/createTable.json +++ b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/createTable.json @@ -2,50 +2,53 @@ "createTable": [ { "EXECTYPE": "EXECUTED", + "ORDEREXECUTED": 1, "COMMENTS": "test_comment", "AUTHOR": "as", - "MD5SUM": "8:4e697074d57029d3e267ce7507da5cf5", + "MD5SUM": "9:4a083dae8a82228dbf846133a767d880", "CONTEXTS": "test_context", "DESCRIPTION": "sql", "ID": "1", "LABELS": "test_label", - "FILENAME": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.xml", + "FILENAME": "liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.xml", "TAG": "" }, { "EXECTYPE": "EXECUTED", + "ORDEREXECUTED": 2, "COMMENTS": "test_comment", "AUTHOR": "as", - "MD5SUM": "8:13bf5dadad410884e263691bc66ee760", + "MD5SUM": "9:b93d6668d8df8115b2b634a585875da6", "CONTEXTS": "test_context", - "DESCRIPTION": "createTable tableName=test_table_yaml", - "ID": "1", + "DESCRIPTION": "createTable tableName=test_table_json", + "ID": "2", "LABELS": "test_label", - "FILENAME": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.yml", + "FILENAME": "liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.json", "TAG": "" }, { "EXECTYPE": "EXECUTED", + "ORDEREXECUTED": 3, "COMMENTS": "test_comment", "AUTHOR": "as", - "MD5SUM": "8:b9ab89365e024967a1da5704f0441428", + "MD5SUM": "9:7eb68c7a3994f387134835e99cf27a10", "CONTEXTS": "test_context", - "DESCRIPTION": "createTable tableName=test_table_json", - "ID": "1", + "DESCRIPTION": "createTable tableName=test_table_yaml", + "ID": "3", "LABELS": "test_label", - "FILENAME": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.json", + "FILENAME": "liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.yml", "TAG": "" }, { "EXECTYPE": "EXECUTED", "COMMENTS": "test_comment", "AUTHOR": "as", - "MD5SUM": "8:3e89383340c9b7c69e4902c53534b7ac", + "MD5SUM": "9:23305a0f4312264f2bee0e1e23cad5de", "CONTEXTS": "test_context", "DESCRIPTION": "sql", - "ID": "1", + "ID": "4", "LABELS": "test_label", - "FILENAME": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.sql", + "FILENAME": "liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.sql", "TAG": "test_tag" } ] diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/db2-z/createTable.json b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/db2-z/createTable.json index b6c722780..221ef9878 100644 --- a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/db2-z/createTable.json +++ b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/db2-z/createTable.json @@ -4,7 +4,7 @@ "EXECTYPE": "EXECUTED", "COMMENTS": "", "AUTHOR": "liquibase", - "MD5SUM": "8:d41d8cd98f00b204e9800998ecf8427e", + "MD5SUM": ".*", "CONTEXTS": "", "DESCRIPTION": "empty", "TAG": "test-harness-tag", @@ -15,49 +15,49 @@ "EXECTYPE": "EXECUTED", "COMMENTS": "", "AUTHOR": "as", - "MD5SUM": "8:4e697074d57029d3e267ce7507da5cf5", + "MD5SUM": "9:4a083dae8a82228dbf846133a767d880", "CONTEXTS": "test_context", "DESCRIPTION": "sql", "ID": "1", "LABELS": "test_label", - "FILENAME": "liquibase\/harness\/base\/changelogs\/createTable.xml", + "FILENAME": "liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.xml", "TAG": "" }, { "EXECTYPE": "EXECUTED", "COMMENTS": "", "AUTHOR": "as", - "MD5SUM": "8:13bf5dadad410884e263691bc66ee760", + "MD5SUM": "9:b93d6668d8df8115b2b634a585875da6", "CONTEXTS": "test_context", - "DESCRIPTION": "createTable tableName=test_table_yaml", - "ID": "1", + "DESCRIPTION": "sql", + "ID": "2", "LABELS": "test_label", - "FILENAME": "liquibase\/harness\/base\/changelogs\/createTable.yml", + "FILENAME": "liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.json", "TAG": "" }, { "EXECTYPE": "EXECUTED", "COMMENTS": "", "AUTHOR": "as", - "MD5SUM": "8:3e89383340c9b7c69e4902c53534b7ac", + "MD5SUM": "9:7eb68c7a3994f387134835e99cf27a10", "CONTEXTS": "test_context", - "DESCRIPTION": "sql", - "ID": "1", + "DESCRIPTION": "createTable tableName=test_table_yaml", + "ID": "3", "LABELS": "test_label", - "FILENAME": "liquibase\/harness\/base\/changelogs\/createTable.sql", - "TAG": "test_tag" + "FILENAME": "liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.yml", + "TAG": "" }, { "EXECTYPE": "EXECUTED", "COMMENTS": "", "AUTHOR": "as", - "MD5SUM": "8:b9ab89365e024967a1da5704f0441428", + "MD5SUM": "9:23305a0f4312264f2bee0e1e23cad5de", "CONTEXTS": "test_context", "DESCRIPTION": "sql", - "ID": "1", + "ID": "4", "LABELS": "test_label", - "FILENAME": "liquibase\/harness\/base\/changelogs\/createTable.json", - "TAG": "" + "FILENAME": "liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.sql", + "TAG": "test_tag" } ] } \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/edb-edb/createTable.json b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/edb-edb/createTable.json index 24b8b6205..1da238e15 100644 --- a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/edb-edb/createTable.json +++ b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/edb-edb/createTable.json @@ -3,49 +3,53 @@ { "comments": "test_comment", "author": "as", - "description": "createTable tableName=test_table_yaml", + "orderexecuted": 1, + "description": "sql", "contexts": "test_context", "exectype": "EXECUTED", "labels": "test_label", - "filename": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.yml", - "md5sum": "8:13bf5dadad410884e263691bc66ee760", + "filename": "liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.xml", + "md5sum": "9:4a083dae8a82228dbf846133a767d880", "id": "1", "tag": "" }, { "comments": "test_comment", "author": "as", - "description": "sql", + "orderexecuted": 2, + "description": "createTable tableName=test_table_json", "contexts": "test_context", "exectype": "EXECUTED", "labels": "test_label", - "filename": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.xml", - "md5sum": "8:4e697074d57029d3e267ce7507da5cf5", - "id": "1", + "filename": "liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.json", + "md5sum": "9:b93d6668d8df8115b2b634a585875da6", + "id": "2", "tag": "" }, { "comments": "test_comment", "author": "as", - "description": "createTable tableName=test_table_json", + "orderexecuted": 3, + "description": "createTable tableName=test_table_yaml", "contexts": "test_context", "exectype": "EXECUTED", "labels": "test_label", - "filename": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.json", - "md5sum": "8:b9ab89365e024967a1da5704f0441428", - "id": "1", + "filename": "liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.yml", + "md5sum": "9:7eb68c7a3994f387134835e99cf27a10", + "id": "3", "tag": "" }, { "comments": "test_comment", "author": "as", + "orderexecuted": 4, "description": "sql", "contexts": "test_context", "exectype": "EXECUTED", "labels": "test_label", - "filename": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.sql", - "md5sum": "8:3e89383340c9b7c69e4902c53534b7ac", - "id": "1", + "filename": "liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.sql", + "md5sum": "9:23305a0f4312264f2bee0e1e23cad5de", + "id": "4", "tag": "test_tag" } ] diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/edb-postgres/createTable.json b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/edb-postgres/createTable.json index 24b8b6205..e877b7d8f 100644 --- a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/edb-postgres/createTable.json +++ b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/edb-postgres/createTable.json @@ -3,37 +3,37 @@ { "comments": "test_comment", "author": "as", - "description": "createTable tableName=test_table_yaml", + "description": "sql", "contexts": "test_context", "exectype": "EXECUTED", "labels": "test_label", - "filename": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.yml", - "md5sum": "8:13bf5dadad410884e263691bc66ee760", + "filename": "liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.xml", + "md5sum": "9:4a083dae8a82228dbf846133a767d880", "id": "1", "tag": "" }, { "comments": "test_comment", "author": "as", - "description": "sql", + "description": "createTable tableName=test_table_json", "contexts": "test_context", "exectype": "EXECUTED", "labels": "test_label", - "filename": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.xml", - "md5sum": "8:4e697074d57029d3e267ce7507da5cf5", - "id": "1", + "filename": "liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.json", + "md5sum": "9:b93d6668d8df8115b2b634a585875da6", + "id": "2", "tag": "" }, { "comments": "test_comment", "author": "as", - "description": "createTable tableName=test_table_json", + "description": "createTable tableName=test_table_yaml", "contexts": "test_context", "exectype": "EXECUTED", "labels": "test_label", - "filename": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.json", - "md5sum": "8:b9ab89365e024967a1da5704f0441428", - "id": "1", + "filename": "liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.yml", + "md5sum": "9:7eb68c7a3994f387134835e99cf27a10", + "id": "3", "tag": "" }, { @@ -43,9 +43,9 @@ "contexts": "test_context", "exectype": "EXECUTED", "labels": "test_label", - "filename": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.sql", - "md5sum": "8:3e89383340c9b7c69e4902c53534b7ac", - "id": "1", + "filename": "liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.sql", + "md5sum": "9:23305a0f4312264f2bee0e1e23cad5de", + "id": "4", "tag": "test_tag" } ] diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/edb/createTable.json b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/edb/createTable.json index 356dc00f7..1da238e15 100644 --- a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/edb/createTable.json +++ b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/edb/createTable.json @@ -3,50 +3,54 @@ { "comments": "test_comment", "author": "as", + "orderexecuted": 1, "description": "sql", "contexts": "test_context", "exectype": "EXECUTED", "labels": "test_label", - "filename": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.xml", - "md5sum": "8:4e697074d57029d3e267ce7507da5cf5", + "filename": "liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.xml", + "md5sum": "9:4a083dae8a82228dbf846133a767d880", "id": "1", "tag": "" }, { "comments": "test_comment", "author": "as", - "description": "createTable tableName=test_table_yaml", + "orderexecuted": 2, + "description": "createTable tableName=test_table_json", "contexts": "test_context", "exectype": "EXECUTED", "labels": "test_label", - "filename": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.yml", - "md5sum": "8:13bf5dadad410884e263691bc66ee760", - "id": "1", + "filename": "liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.json", + "md5sum": "9:b93d6668d8df8115b2b634a585875da6", + "id": "2", "tag": "" }, { "comments": "test_comment", "author": "as", - "description": "sql", + "orderexecuted": 3, + "description": "createTable tableName=test_table_yaml", "contexts": "test_context", "exectype": "EXECUTED", "labels": "test_label", - "filename": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.sql", - "md5sum": "8:3e89383340c9b7c69e4902c53534b7ac", - "id": "1", - "tag": "test_tag" + "filename": "liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.yml", + "md5sum": "9:7eb68c7a3994f387134835e99cf27a10", + "id": "3", + "tag": "" }, { "comments": "test_comment", "author": "as", - "description": "createTable tableName=test_table_json", + "orderexecuted": 4, + "description": "sql", "contexts": "test_context", "exectype": "EXECUTED", "labels": "test_label", - "filename": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.json", - "md5sum": "8:b9ab89365e024967a1da5704f0441428", - "id": "1", - "tag": "" + "filename": "liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.sql", + "md5sum": "9:23305a0f4312264f2bee0e1e23cad5de", + "id": "4", + "tag": "test_tag" } ] } \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mssql/azure/createTable.json b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mssql/azure/createTable.json index 10dd4cd53..19ed5f0e1 100644 --- a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mssql/azure/createTable.json +++ b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mssql/azure/createTable.json @@ -4,7 +4,7 @@ "EXECTYPE":"EXECUTED", "COMMENTS":"", "AUTHOR":"liquibase", - "MD5SUM":"8:22fecc43185615efdc0426bf8b4c2a1b", + "MD5SUM":".*", "CONTEXTS":"", "DESCRIPTION":"sql", "ID":"1", @@ -16,48 +16,48 @@ "EXECTYPE": "EXECUTED", "COMMENTS": "test_comment", "AUTHOR": "as", - "MD5SUM": "8:4e697074d57029d3e267ce7507da5cf5", + "MD5SUM": "9:4a083dae8a82228dbf846133a767d880", "CONTEXTS": "test_context", "DESCRIPTION": "sql", "ID": "1", "LABELS": "test_label", - "FILENAME": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.xml", + "FILENAME": "liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.xml", "TAG": "" }, { "EXECTYPE": "EXECUTED", "COMMENTS": "test_comment", "AUTHOR": "as", - "MD5SUM": "8:13bf5dadad410884e263691bc66ee760", + "MD5SUM": "9:b93d6668d8df8115b2b634a585875da6", "CONTEXTS": "test_context", - "DESCRIPTION": "createTable tableName=test_table_yaml", - "ID": "1", + "DESCRIPTION": "createTable tableName=test_table_json", + "ID": "2", "LABELS": "test_label", - "FILENAME": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.yml", + "FILENAME": "liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.json", "TAG": "" }, { "EXECTYPE": "EXECUTED", "COMMENTS": "test_comment", "AUTHOR": "as", - "MD5SUM": "8:b9ab89365e024967a1da5704f0441428", + "MD5SUM": "9:7eb68c7a3994f387134835e99cf27a10", "CONTEXTS": "test_context", - "DESCRIPTION": "createTable tableName=test_table_json", - "ID": "1", + "DESCRIPTION": "createTable tableName=test_table_yaml", + "ID": "3", "LABELS": "test_label", - "FILENAME": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.json", + "FILENAME": "liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.yml", "TAG": "" }, { "EXECTYPE": "EXECUTED", "COMMENTS": "test_comment", "AUTHOR": "as", - "MD5SUM": "8:3e89383340c9b7c69e4902c53534b7ac", + "MD5SUM": "9:23305a0f4312264f2bee0e1e23cad5de", "CONTEXTS": "test_context", "DESCRIPTION": "sql", - "ID": "1", + "ID": "4", "LABELS": "test_label", - "FILENAME": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.sql", + "FILENAME": "liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.sql", "TAG": "test_tag" } ] diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mysql/azure/createTable.json b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mysql/azure/createTable.json index c931b3d90..bfb3c8f30 100644 --- a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mysql/azure/createTable.json +++ b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mysql/azure/createTable.json @@ -4,7 +4,7 @@ "EXECTYPE":"EXECUTED", "COMMENTS":"", "AUTHOR":"liquibase", - "MD5SUM":"8:43aa5d72dc939cea9f59a57da06e3129", + "MD5SUM":".*", "CONTEXTS":"", "DESCRIPTION":"sql", "ID":"1", @@ -16,48 +16,48 @@ "EXECTYPE": "EXECUTED", "COMMENTS": "test_comment", "AUTHOR": "as", - "MD5SUM": "8:4e697074d57029d3e267ce7507da5cf5", + "MD5SUM": "9:4a083dae8a82228dbf846133a767d880", "CONTEXTS": "test_context", "DESCRIPTION": "sql", "ID": "1", "LABELS": "test_label", - "FILENAME": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.xml", + "FILENAME": "liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.xml", "TAG": "" }, { "EXECTYPE": "EXECUTED", "COMMENTS": "test_comment", "AUTHOR": "as", - "MD5SUM": "8:13bf5dadad410884e263691bc66ee760", + "MD5SUM": "9:b93d6668d8df8115b2b634a585875da6", "CONTEXTS": "test_context", - "DESCRIPTION": "createTable tableName=test_table_yaml", - "ID": "1", + "DESCRIPTION": "createTable tableName=test_table_json", + "ID": "2", "LABELS": "test_label", - "FILENAME": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.yml", + "FILENAME": "liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.json", "TAG": "" }, { "EXECTYPE": "EXECUTED", "COMMENTS": "test_comment", "AUTHOR": "as", - "MD5SUM": "8:b9ab89365e024967a1da5704f0441428", + "MD5SUM": "9:7eb68c7a3994f387134835e99cf27a10", "CONTEXTS": "test_context", - "DESCRIPTION": "createTable tableName=test_table_json", - "ID": "1", + "DESCRIPTION": "createTable tableName=test_table_yaml", + "ID": "3", "LABELS": "test_label", - "FILENAME": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.json", + "FILENAME": "liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.yml", "TAG": "" }, { "EXECTYPE": "EXECUTED", "COMMENTS": "test_comment", "AUTHOR": "as", - "MD5SUM": "8:3e89383340c9b7c69e4902c53534b7ac", + "MD5SUM": "9:23305a0f4312264f2bee0e1e23cad5de", "CONTEXTS": "test_context", "DESCRIPTION": "sql", - "ID": "1", + "ID": "4", "LABELS": "test_label", - "FILENAME": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.sql", + "FILENAME": "liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.sql", "TAG": "test_tag" } ] diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/postgresql/azure/createTable.json b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/postgresql/azure/createTable.json index ce3194812..66892cda6 100644 --- a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/postgresql/azure/createTable.json +++ b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/postgresql/azure/createTable.json @@ -1,17 +1,5 @@ { "createTable": [ - { - "comments":"test_comment", - "author":"as", - "description":"createTable tableName=test_table_json", - "contexts":"test_context", - "exectype":"EXECUTED", - "labels":"test_label", - "filename":"liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.json", - "md5sum":"8:b9ab89365e024967a1da5704f0441428", - "id":"1", - "tag":"" - }, { "comments":"", "author":"liquibase", @@ -22,7 +10,7 @@ "filename":"postgresql.sql", "md5sum":"8:dcd35d09f34d2ec9aeae879fc4222925", "id":"1", - "tag":"", + "tag":"" }, { "comments":"test_comment", @@ -32,10 +20,21 @@ "exectype":"EXECUTED", "labels":"test_label", "filename":"liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.xml", - "md5sum":"8:4e697074d57029d3e267ce7507da5cf5", + "md5sum":"9:4a083dae8a82228dbf846133a767d880", "id":"1", - "tag":"", - "deployment_id":"3610748767" + "tag":"" + }, + { + "comments":"test_comment", + "author":"as", + "description":"createTable tableName=test_table_json", + "contexts":"test_context", + "exectype":"EXECUTED", + "labels":"test_label", + "filename":"liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.json", + "md5sum":"9:b93d6668d8df8115b2b634a585875da6", + "id":"2", + "tag":"" }, { "comments":"test_comment", @@ -45,8 +44,8 @@ "exectype":"EXECUTED", "labels":"test_label", "filename":"liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.yml", - "md5sum":"8:13bf5dadad410884e263691bc66ee760", - "id":"1", + "md5sum":"9:7eb68c7a3994f387134835e99cf27a10", + "id":"3", "tag":"" }, { @@ -57,8 +56,8 @@ "exectype":"EXECUTED", "labels":"test_label", "filename":"liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.sql", - "md5sum":"8:3e89383340c9b7c69e4902c53534b7ac", - "id":"1", + "md5sum":"9:23305a0f4312264f2bee0e1e23cad5de", + "id":"4", "tag":"test_tag" } ] diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/postgresql/createTable.json b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/postgresql/createTable.json index 356dc00f7..9be4ae70d 100644 --- a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/postgresql/createTable.json +++ b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/postgresql/createTable.json @@ -3,50 +3,54 @@ { "comments": "test_comment", "author": "as", + "orderexecuted": 1, "description": "sql", "contexts": "test_context", "exectype": "EXECUTED", "labels": "test_label", - "filename": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.xml", - "md5sum": "8:4e697074d57029d3e267ce7507da5cf5", + "filename": "liquibase/harness/compatibility/foundational/changelogs/createTable.xml", + "md5sum": "9:4a083dae8a82228dbf846133a767d880", "id": "1", "tag": "" }, { "comments": "test_comment", "author": "as", - "description": "createTable tableName=test_table_yaml", + "orderexecuted": 2, + "description": "createTable tableName=test_table_json", "contexts": "test_context", "exectype": "EXECUTED", "labels": "test_label", - "filename": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.yml", - "md5sum": "8:13bf5dadad410884e263691bc66ee760", - "id": "1", + "filename": "liquibase/harness/compatibility/foundational/changelogs/createTable.json", + "md5sum": "9:b93d6668d8df8115b2b634a585875da6", + "id": "2", "tag": "" }, { "comments": "test_comment", "author": "as", - "description": "sql", + "orderexecuted": 3, + "description": "createTable tableName=test_table_yaml", "contexts": "test_context", "exectype": "EXECUTED", "labels": "test_label", - "filename": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.sql", - "md5sum": "8:3e89383340c9b7c69e4902c53534b7ac", - "id": "1", - "tag": "test_tag" + "filename": "liquibase/harness/compatibility/foundational/changelogs/createTable.yml", + "md5sum": "9:7eb68c7a3994f387134835e99cf27a10", + "id": "3", + "tag": "" }, { "comments": "test_comment", "author": "as", - "description": "createTable tableName=test_table_json", + "orderexecuted": 4, + "description": "sql", "contexts": "test_context", "exectype": "EXECUTED", "labels": "test_label", - "filename": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.json", - "md5sum": "8:b9ab89365e024967a1da5704f0441428", - "id": "1", - "tag": "" + "filename": "liquibase/harness/compatibility/foundational/changelogs/createTable.sql", + "md5sum": "9:23305a0f4312264f2bee0e1e23cad5de", + "id": "4", + "tag": "test_tag" } ] } \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/postgresql/flexible/createTable.json b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/postgresql/flexible/createTable.json index 79c4bc60e..333feed3a 100644 --- a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/postgresql/flexible/createTable.json +++ b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/postgresql/flexible/createTable.json @@ -8,9 +8,9 @@ "exectype":"RERAN", "labels":"", "filename":"postgresql.sql", - "md5sum":"8:dcd35d09f34d2ec9aeae879fc4222925", + "md5sum":".*", "id":"1", - "tag":"", + "tag":"" }, { "comments":"test_comment", @@ -20,33 +20,32 @@ "exectype":"EXECUTED", "labels":"test_label", "filename":"liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.xml", - "md5sum":"8:4e697074d57029d3e267ce7507da5cf5", + "md5sum":"9:4a083dae8a82228dbf846133a767d880", "id":"1", - "tag":"", - "deployment_id":"3610748767" + "tag":"" }, { "comments":"test_comment", "author":"as", - "description":"createTable tableName=test_table_yaml", + "description":"createTable tableName=test_table_json", "contexts":"test_context", "exectype":"EXECUTED", "labels":"test_label", - "filename":"liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.yml", - "md5sum":"8:13bf5dadad410884e263691bc66ee760", - "id":"1", + "filename":"liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.json", + "md5sum":"9:b93d6668d8df8115b2b634a585875da6", + "id":"2", "tag":"" }, { "comments":"test_comment", "author":"as", - "description":"createTable tableName=test_table_json", + "description":"createTable tableName=test_table_yaml", "contexts":"test_context", "exectype":"EXECUTED", "labels":"test_label", - "filename":"liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.json", - "md5sum":"8:b9ab89365e024967a1da5704f0441428", - "id":"1", + "filename":"liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.yml", + "md5sum":"9:7eb68c7a3994f387134835e99cf27a10", + "id":"3", "tag":"" }, { @@ -57,8 +56,8 @@ "exectype":"EXECUTED", "labels":"test_label", "filename":"liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.sql", - "md5sum":"8:3e89383340c9b7c69e4902c53534b7ac", - "id":"1", + "md5sum":"9:23305a0f4312264f2bee0e1e23cad5de", + "id":"4", "tag":"test_tag" } ] diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/snowflake/createTable.json b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/snowflake/createTable.json index 4879f479d..3cfb85262 100644 --- a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/snowflake/createTable.json +++ b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/snowflake/createTable.json @@ -4,7 +4,7 @@ "EXECTYPE":"EXECUTED", "COMMENTS":"", "AUTHOR":"liquibase", - "MD5SUM":"8:d41d8cd98f00b204e9800998ecf8427e", + "MD5SUM":".*", "CONTEXTS":"", "DESCRIPTION":"empty", "TAG":"test-harness-tag", @@ -15,49 +15,49 @@ "EXECTYPE":"EXECUTED", "COMMENTS":"test_comment", "AUTHOR":"as", - "MD5SUM":"8:4e697074d57029d3e267ce7507da5cf5", + "MD5SUM":"9:4a083dae8a82228dbf846133a767d880", "CONTEXTS":"test_context", "DESCRIPTION":"sql", "ID":"1", "TAG":"", "LABELS":"test_label", - "FILENAME":"liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.xml" + "FILENAME":"liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.xml" }, { "EXECTYPE":"EXECUTED", "COMMENTS":"test_comment", "AUTHOR":"as", - "MD5SUM":"8:13bf5dadad410884e263691bc66ee760", + "MD5SUM":"9:b93d6668d8df8115b2b634a585875da6", "CONTEXTS":"test_context", - "DESCRIPTION":"createTable tableName=test_table_yaml", - "ID":"1", + "DESCRIPTION":"createTable tableName=test_table_json", + "ID":"2", "TAG":"", "LABELS":"test_label", - "FILENAME":"liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.yml" + "FILENAME":"liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.json" }, { "EXECTYPE":"EXECUTED", "COMMENTS":"test_comment", "AUTHOR":"as", - "MD5SUM":"8:b9ab89365e024967a1da5704f0441428", + "MD5SUM":"9:7eb68c7a3994f387134835e99cf27a10", "CONTEXTS":"test_context", - "DESCRIPTION":"createTable tableName=test_table_json", - "ID":"1", + "DESCRIPTION":"createTable tableName=test_table_yaml", + "ID":"3", "TAG":"", "LABELS":"test_label", - "FILENAME":"liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.json" + "FILENAME":"liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.yml" }, { "EXECTYPE":"EXECUTED", "COMMENTS":"test_comment", "AUTHOR":"as", - "MD5SUM":"8:3e89383340c9b7c69e4902c53534b7ac", + "MD5SUM":"9:23305a0f4312264f2bee0e1e23cad5de", "CONTEXTS":"test_context", "DESCRIPTION":"sql", - "ID":"1", + "ID":"4", "TAG":"test_tag", "LABELS":"test_label", - "FILENAME":"liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.sql" + "FILENAME":"liquibase\/harness\/compatibility\/foundational\/changelogs\/createTable.sql" } ] } \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/sqlite/createTable.json b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/sqlite/createTable.json index a94bdf87c..313cdd1e8 100644 --- a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/sqlite/createTable.json +++ b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/sqlite/createTable.json @@ -2,51 +2,55 @@ "createTable": [ { "EXECTYPE": "EXECUTED", + "ORDEREXECUTED": 1, "COMMENTS": "test_comment", "AUTHOR": "as", - "MD5SUM": "8:4e697074d57029d3e267ce7507da5cf5", + "MD5SUM": "9:4a083dae8a82228dbf846133a767d880", "CONTEXTS": "test_context", "DESCRIPTION": "sql", "ID": "1", + "TAG": "", "LABELS": "test_label", - "FILENAME": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.xml", - "TAG": "test_tag" + "FILENAME": "liquibase/harness/compatibility/foundational/changelogs/createTable.xml" }, { "EXECTYPE": "EXECUTED", + "ORDEREXECUTED": 2, "COMMENTS": "test_comment", "AUTHOR": "as", - "MD5SUM": "8:13bf5dadad410884e263691bc66ee760", + "MD5SUM": "9:b93d6668d8df8115b2b634a585875da6", "CONTEXTS": "test_context", - "DESCRIPTION": "createTable tableName=test_table_yaml", - "ID": "1", + "DESCRIPTION": "createTable tableName=test_table_json", + "ID": "2", + "TAG": "test_tag", "LABELS": "test_label", - "FILENAME": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.yml", - "TAG": "test_tag" + "FILENAME": "liquibase/harness/compatibility/foundational/changelogs/createTable.json" }, { "EXECTYPE": "EXECUTED", + "ORDEREXECUTED": 3, "COMMENTS": "test_comment", "AUTHOR": "as", - "MD5SUM": "8:b9ab89365e024967a1da5704f0441428", + "MD5SUM": "9:7eb68c7a3994f387134835e99cf27a10", "CONTEXTS": "test_context", - "DESCRIPTION": "createTable tableName=test_table_json", - "ID": "1", + "DESCRIPTION": "createTable tableName=test_table_yaml", + "ID": "3", + "TAG": "test_tag", "LABELS": "test_label", - "FILENAME": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.json", - "TAG": "test_tag" + "FILENAME": "liquibase/harness/compatibility/foundational/changelogs/createTable.yml" }, { "EXECTYPE": "EXECUTED", + "ORDEREXECUTED": 4, "COMMENTS": "test_comment", "AUTHOR": "as", - "MD5SUM": "8:3e89383340c9b7c69e4902c53534b7ac", + "MD5SUM": "9:23305a0f4312264f2bee0e1e23cad5de", "CONTEXTS": "test_context", "DESCRIPTION": "sql", - "ID": "1", + "ID": "4", + "TAG": "test_tag", "LABELS": "test_label", - "FILENAME": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.sql", - "TAG": "test_tag" + "FILENAME": "liquibase/harness/compatibility/foundational/changelogs/createTable.sql" } ] } \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/data/changelogs/informix/loadUpdateData.csv b/src/main/resources/liquibase/harness/data/changelogs/informix/loadUpdateData.csv new file mode 100644 index 000000000..3fec2c40f --- /dev/null +++ b/src/main/resources/liquibase/harness/data/changelogs/informix/loadUpdateData.csv @@ -0,0 +1,4 @@ +id;first_name;last_name;email;birthdate;added +1;Adam;Gods;test1@example.com;1000-02-27;2000-02-04T02:32:00 +7;Noah;Lamekhs;test2@example.com;2000-02-27;1994-12-10T01:00:00 +8;Muhammad;Ibn Abdullah;test3@example.com;3000-02-27;2000-12-10T01:00:00 diff --git a/src/main/resources/liquibase/harness/data/changelogs/informix/loadUpdateData.xml b/src/main/resources/liquibase/harness/data/changelogs/informix/loadUpdateData.xml new file mode 100644 index 000000000..ab4f4fa13 --- /dev/null +++ b/src/main/resources/liquibase/harness/data/changelogs/informix/loadUpdateData.xml @@ -0,0 +1,24 @@ + + + + + + + + DELETE FROM authors WHERE id = 1; + INSERT INTO authors (id, first_name, last_name, email, birthdate, added) VALUES (1, 'Eileen', 'Lubowitz', 'ppaucek@example.org', TO_DATE('1991-03-04', '%Y-%m-%d'), TO_DATE('2004-05-30 02:08:25', '%Y-%m-%d %H:%M:%S'));; + DELETE FROM authors WHERE id = 7; + DELETE FROM authors WHERE id = 8; + + + + diff --git a/src/main/resources/liquibase/harness/data/expectedSql/hsqldb/alterSequence.sql b/src/main/resources/liquibase/harness/data/expectedSql/hsqldb/alterSequence.sql index 4d5fcb8e9..ef796c158 100644 --- a/src/main/resources/liquibase/harness/data/expectedSql/hsqldb/alterSequence.sql +++ b/src/main/resources/liquibase/harness/data/expectedSql/hsqldb/alterSequence.sql @@ -1,2 +1,2 @@ -CREATE SEQUENCE PUBLIC.test_sequence AS BIGINT START WITH 1 INCREMENT BY 1 +CREATE SEQUENCE PUBLIC.test_sequence AS BIGINT START WITH 1 INCREMENT BY 1 ALTER SEQUENCE PUBLIC.test_sequence RESTART WITH 42 \ No newline at end of file diff --git a/src/test/resources/H2/lbcat.mv.db b/src/test/resources/H2/lbcat.mv.db index e37b5e1d5..6e4d84ea3 100644 Binary files a/src/test/resources/H2/lbcat.mv.db and b/src/test/resources/H2/lbcat.mv.db differ diff --git a/src/test/resources/automation-runner.sh b/src/test/resources/automation-runner.sh index b17f36e0e..2a80ab32e 100755 --- a/src/test/resources/automation-runner.sh +++ b/src/test/resources/automation-runner.sh @@ -26,6 +26,9 @@ case $db in "percona-xtradb-cluster-8.0" ) test_command mvn -ntp -Dtest=$tc -DdbName=percona-xtradb-cluster -DdbVersion=8.0 test ;; + "percona-xtradb-cluster-8.4" ) + test_command mvn -ntp -Dtest=$tc -DdbName=percona-xtradb-cluster -DdbVersion=8.4 test + ;; "postgres-12" ) test_command mvn -ntp -Dtest=$tc -DdbName=postgresql -DdbVersion=12 test ;; @@ -132,10 +135,16 @@ case $db in test_command mvn -ntp -Dtest=$tc -DdbName=firebird -DdbVersion=4 test ;; "db2-luw") - test_command mvn -ntp -Dtest=$tc -DdbName=db2-luw test - ;; + test_command mvn -ntp -Dtest=$tc -DdbName=db2-luw test + ;; "snowflake") test_command mvn -ntp -Dtest=$tc -DdbName=snowflake -DrollbackStrategy=rollbackByTag test ;; + "informix-12.10") + test_command mvn -ntp -Dtest=$tc -DdbName=informix -DdbVersion=12 test + ;; + "informix-14.10") + test_command mvn -ntp -Dtest=$tc -DdbName=informix -DdbVersion=14 test + ;; esac diff --git a/src/test/resources/derby/lbcat/db.lck b/src/test/resources/derby/lbcat/db.lck deleted file mode 100644 index 17f173da9..000000000 Binary files a/src/test/resources/derby/lbcat/db.lck and /dev/null differ diff --git a/src/test/resources/derby/lbcat/log/log.ctrl b/src/test/resources/derby/lbcat/log/log.ctrl index 790e5edc0..8972fe6b8 100644 Binary files a/src/test/resources/derby/lbcat/log/log.ctrl and b/src/test/resources/derby/lbcat/log/log.ctrl differ diff --git a/src/test/resources/derby/lbcat/log/log5.dat b/src/test/resources/derby/lbcat/log/log5.dat index 1c8d9a255..c1d17e88c 100644 Binary files a/src/test/resources/derby/lbcat/log/log5.dat and b/src/test/resources/derby/lbcat/log/log5.dat differ diff --git a/src/test/resources/derby/lbcat/log/logmirror.ctrl b/src/test/resources/derby/lbcat/log/logmirror.ctrl index 790e5edc0..8972fe6b8 100644 Binary files a/src/test/resources/derby/lbcat/log/logmirror.ctrl and b/src/test/resources/derby/lbcat/log/logmirror.ctrl differ diff --git a/src/test/resources/derby/lbcat/seg0/c10.dat b/src/test/resources/derby/lbcat/seg0/c10.dat index 1f9a1837d..e9b4c1153 100644 Binary files a/src/test/resources/derby/lbcat/seg0/c10.dat and b/src/test/resources/derby/lbcat/seg0/c10.dat differ diff --git a/src/test/resources/derby/lbcat/seg0/c230.dat b/src/test/resources/derby/lbcat/seg0/c230.dat index 1e717529e..7cb670739 100644 Binary files a/src/test/resources/derby/lbcat/seg0/c230.dat and b/src/test/resources/derby/lbcat/seg0/c230.dat differ diff --git a/src/test/resources/derby/lbcat/seg0/c241.dat b/src/test/resources/derby/lbcat/seg0/c241.dat index fd644a31a..acf23b722 100644 Binary files a/src/test/resources/derby/lbcat/seg0/c241.dat and b/src/test/resources/derby/lbcat/seg0/c241.dat differ diff --git a/src/test/resources/derby/lbcat/seg0/c251.dat b/src/test/resources/derby/lbcat/seg0/c251.dat index 07de720bb..6c4351669 100644 Binary files a/src/test/resources/derby/lbcat/seg0/c251.dat and b/src/test/resources/derby/lbcat/seg0/c251.dat differ diff --git a/src/test/resources/derby/lbcat/seg0/c4c0.dat b/src/test/resources/derby/lbcat/seg0/c4c0.dat index 96aa57f1e..80786d9a5 100644 Binary files a/src/test/resources/derby/lbcat/seg0/c4c0.dat and b/src/test/resources/derby/lbcat/seg0/c4c0.dat differ diff --git a/src/test/resources/derby/lbcat/seg0/c90.dat b/src/test/resources/derby/lbcat/seg0/c90.dat index d1d738f16..2abcbb72a 100644 Binary files a/src/test/resources/derby/lbcat/seg0/c90.dat and b/src/test/resources/derby/lbcat/seg0/c90.dat differ diff --git a/src/test/resources/derby/lbcat/seg0/ca1.dat b/src/test/resources/derby/lbcat/seg0/ca1.dat index c47a06075..421632b05 100644 Binary files a/src/test/resources/derby/lbcat/seg0/ca1.dat and b/src/test/resources/derby/lbcat/seg0/ca1.dat differ diff --git a/src/test/resources/derby/lbcat/seg0/cb1.dat b/src/test/resources/derby/lbcat/seg0/cb1.dat index 452187a4a..00fa0b4de 100644 Binary files a/src/test/resources/derby/lbcat/seg0/cb1.dat and b/src/test/resources/derby/lbcat/seg0/cb1.dat differ diff --git a/src/test/resources/docker/create-infra.sh b/src/test/resources/docker/create-infra.sh index 6d14efd8c..6de0abb8e 100755 --- a/src/test/resources/docker/create-infra.sh +++ b/src/test/resources/docker/create-infra.sh @@ -7,7 +7,7 @@ db=$1 case $db in # percona xtradb cluster needs a bit more time to start - "percona-xtradb-cluster-5.7"|"percona-xtradb-cluster-8.0" ) + "percona-xtradb-cluster-5.7"|"percona-xtradb-cluster-8.0"|"percona-xtradb-cluster-8.4" ) docker compose up -d $db sleep 180 ;; @@ -66,6 +66,12 @@ case $db in exit 0 ;; + # informix needs a bit more time to start + "informix-12.10"|"informix-14.10") + docker compose up -d $db + sleep 60 + ;; + # standard startup *) docker compose up -d $db diff --git a/src/test/resources/docker/docker-compose.yml b/src/test/resources/docker/docker-compose.yml index 1e82ead9c..12bf00e07 100644 --- a/src/test/resources/docker/docker-compose.yml +++ b/src/test/resources/docker/docker-compose.yml @@ -76,6 +76,22 @@ services: volumes: - "./percona-xtradb-cluster-init.sql:/docker-entrypoint-initdb.d/percona-xtradb-cluster-init.sql" + percona-xtradb-cluster-8.4: + image: percona/percona-xtradb-cluster:8.4 + ports: + - "33072:3306" + networks: + - cluster1_net + restart: always + environment: + MYSQL_ROOT_PASSWORD: LbRootPass1 + MYSQL_DATABASE: lbcat + MYSQL_USER: lbuser + MYSQL_PASSWORD: LiquibasePass1 + CLUSTER_NAME: cluster1 + volumes: + - "./percona-xtradb-cluster-init.sql:/docker-entrypoint-initdb.d/percona-xtradb-cluster-init.sql" + postgres-12: image: postgres:12 ports: @@ -342,6 +358,37 @@ services: depends_on: - crdb-24.1 + informix-12.10: + image: ibmcom/informix-developer-database:12.10.FC12W1DE + container_name: informix-db + hostname: ifx + ports: + - "9088:9088" + environment: + LICENSE: "accept" + INIT_FILE: "sch_init_informix.custom.sql" + SIZE: "custom" + restart: always + privileged: true + volumes: + - "./informix-init.sql:/opt/ibm/data/sch_init_informix.custom.sql" + + informix-14.10: + image: icr.io/informix/informix-developer-database:14.10.FC7W1DE + container_name: informix-db + hostname: ifx + ports: + - "9088:9088" + environment: + LICENSE: "accept" + INIT_FILE: "informix-init.sql" + DBDATE: "Y4MD-" + restart: always + privileged: true + volumes: + - "./informix-init.sql:/opt/ibm/config/informix-init.sql" + + # Titan (https://titan-data.io) is managing these images for our CI/CD process. If you want to run them locally you'll have to # populate init script (hsqldb-init.sql) for this platform manually or install titan and pull image pre-populated with data diff --git a/src/test/resources/docker/informix-init.sql b/src/test/resources/docker/informix-init.sql new file mode 100644 index 000000000..8b7636617 --- /dev/null +++ b/src/test/resources/docker/informix-init.sql @@ -0,0 +1,93 @@ +CREATE DATABASE testdb WITH LOG MODE ANSI; + +DATABASE testdb; + +-- Use BEGIN WORK to start a transaction +BEGIN WORK; + +-- Drop and create authors table +DROP TABLE IF EXISTS authors; +CREATE TABLE authors ( + id SERIAL PRIMARY KEY, + first_name VARCHAR(50) NOT NULL, + last_name VARCHAR(50) NOT NULL, + email VARCHAR(100) NOT NULL, + birthdate DATE NOT NULL, + added DATETIME YEAR TO FRACTION(5) DEFAULT CURRENT YEAR TO FRACTION(5) +); + +-- Insert data into authors table +INSERT INTO authors (id, first_name, last_name, email, birthdate, added) +VALUES + (1, 'Eileen', 'Lubowitz', 'ppaucek@example.org', + TO_DATE('1991-03-04', '%Y-%m-%d'), + TO_DATE('2004-05-30 02:08:25', '%Y-%m-%d %H:%M:%S')); + +INSERT INTO authors (id, first_name, last_name, email, birthdate, added) +VALUES + (2, 'Tamia', 'Mayert', 'shansen@example.org', + TO_DATE('2016-03-27', '%Y-%m-%d'), + TO_DATE('2014-03-21 02:52:00', '%Y-%m-%d %H:%M:%S')); +INSERT INTO authors (id, first_name, last_name, email, birthdate, added) +VALUES + (3, 'Cyril', 'Funk', 'reynolds.godfrey@example.com', + TO_DATE('1988-04-21', '%Y-%m-%d'), + TO_DATE('2011-06-24 18:17:48', '%Y-%m-%d %H:%M:%S')); + +INSERT INTO authors (id, first_name, last_name, email, birthdate, added) +VALUES + (4, 'Nicolas', 'Buckridge', 'xhoeger@example.net', + TO_DATE('2017-02-03', '%Y-%m-%d'), + TO_DATE('2019-04-22 02:04:41', '%Y-%m-%d %H:%M:%S')); + +INSERT INTO authors (id, first_name, last_name, email, birthdate, added) +VALUES + (5, 'Jayden', 'Walter', 'lillian66@example.com', + TO_DATE('2010-02-27', '%Y-%m-%d'), + TO_DATE('1990-02-04 02:32:00', '%Y-%m-%d %H:%M:%S')); + +-- Commit the transaction for authors table +COMMIT WORK; + +-- Start a new transaction for the posts table +BEGIN WORK; + +-- Drop and create posts table +DROP TABLE IF EXISTS posts; +CREATE TABLE posts ( + id SERIAL, + author_id INT NOT NULL, + title VARCHAR(255) NOT NULL DEFAULT 'title_test', + description VARCHAR(255) NOT NULL, + content VARCHAR(255) NOT NULL, + inserted_date DATE NOT NULL +); + +-- Insert data into posts table +INSERT INTO posts (id, author_id, title, description, content, inserted_date) +VALUES + (1, 1, 'temporibus', 'voluptatum', 'Fugit non et doloribus repudiandae.', + TO_DATE('2015-11-18', '%Y-%m-%d')); + +INSERT INTO posts (id, author_id, title, description, content, inserted_date) +VALUES + (2, 2, 'ea', 'aut', 'Tempora molestias maiores provident molestiae sint possimus quasi.', + TO_DATE('1975-06-08', '%Y-%m-%d')); + +INSERT INTO posts (id, author_id, title, description, content, inserted_date) +VALUES + (3, 3, 'illum', 'rerum', 'Delectus recusandae sit officiis dolor.', + TO_DATE('1975-02-25', '%Y-%m-%d')); + +INSERT INTO posts (id, author_id, title, description, content, inserted_date) +VALUES + (4, 4, 'itaque', 'deleniti', 'Magni nam optio id recusandae.', + TO_DATE('2010-07-28', '%Y-%m-%d')); + +INSERT INTO posts (id, author_id, title, description, content, inserted_date) +VALUES + (5, 5, 'ad', 'similique', 'Rerum tempore quis ut nesciunt qui excepturi est.', + TO_DATE('2006-10-09', '%Y-%m-%d')); + +-- Commit the transaction for posts table +COMMIT WORK; \ No newline at end of file diff --git a/src/test/resources/docker/percona-xtradb-cluster-init.sql b/src/test/resources/docker/percona-xtradb-cluster-init.sql index 8411cdd91..2964210ef 100644 --- a/src/test/resources/docker/percona-xtradb-cluster-init.sql +++ b/src/test/resources/docker/percona-xtradb-cluster-init.sql @@ -32,7 +32,7 @@ CREATE TABLE `DATABASECHANGELOG` ( `LIQUIBASE` varchar(20) DEFAULT NULL, `CONTEXTS` varchar(255) DEFAULT NULL, `LABELS` varchar(255) DEFAULT NULL, - `DEPLOYMENT_ID` varchar(10) DEFAULT NULL, + `DEPLOYMENT_ID` varchar(36) DEFAULT NULL, PRIMARY KEY (ID, AUTHOR, FILENAME) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; diff --git a/src/test/resources/harness-config-cloud.yml b/src/test/resources/harness-config-cloud.yml index 25eab45b5..535eaa641 100644 --- a/src/test/resources/harness-config-cloud.yml +++ b/src/test/resources/harness-config-cloud.yml @@ -53,7 +53,7 @@ databasesUnderTest: - name: mssql prefix: aws - version: 2019 + version: aws_2019 url: DBENDPOINT username: USERNAME password: PASSWORD diff --git a/src/test/resources/harness-config.yml b/src/test/resources/harness-config.yml index d3556ae3d..3575428bc 100644 --- a/src/test/resources/harness-config.yml +++ b/src/test/resources/harness-config.yml @@ -70,6 +70,12 @@ databasesUnderTest: username: lbuser password: LiquibasePass1 + - name: percona-xtradb-cluster + version: 8.4 + url: jdbc:mysql://localhost:33072/lbcat + username: lbuser + password: LiquibasePass1 + - name: mariadb prefix: docker version: 10.2 @@ -308,3 +314,18 @@ databasesUnderTest: url: jdbc:firebirdsql://localhost:3050/lbcat username: lbuser password: LiquibasePass1 + + - name: informix + prefix: docker + version: 12 + url: jdbc:informix-sqli://localhost:9088/testdb:INFORMIXSERVER=informix; + username: informix + password: in4mix + + - name: informix + prefix: docker + version: 14 + url: jdbc:informix-sqli://localhost:9088/testdb:INFORMIXSERVER=informix; + username: informix + password: in4mix +