diff --git a/.github/workflows/OracleRunParallel.yml b/.github/workflows/OracleRunParallel.yml index 514520dc0..5fbf34c69 100644 --- a/.github/workflows/OracleRunParallel.yml +++ b/.github/workflows/OracleRunParallel.yml @@ -31,7 +31,7 @@ jobs: cache: 'maven' - name: Docker login to retrive Oracle images from private repo - run: docker login "${{ secrets.ARTIFACTORY_URL }}" -u "${{ secrets.ARTIFACTORY_USER }}" -p "${{ secrets.ARTIFACTORY_TOKEN }}" + run: docker login "${{ secrets.REPO_URL }}" -u "${{ secrets.REPO_USER }}" -p "${{ secrets.REPO_PASSWORD }}" - name: Build Oracle Artifactory test infra if: ${{ matrix.plan == '19.3.0' }} diff --git a/.github/workflows/advanced.yml b/.github/workflows/advanced.yml index cde799d39..b09b693c4 100644 --- a/.github/workflows/advanced.yml +++ b/.github/workflows/advanced.yml @@ -3,7 +3,7 @@ name: Advanced Test Execution on: schedule: - - cron: '0 6 * * *' # Execute every day at noon + - cron: '0 6 * * *' # Execute every day at 6AM UTC workflow_dispatch: inputs: runDescription: @@ -25,8 +25,7 @@ on: databases: description: Databases to start up. Comma separated list of "name" required: true - default: "[\"mysql-5.6\",\"mysql-5.7\",\"mysql-8\",\"postgres-9.5\",\"postgres-9\",\"postgres-10\", - \"postgres-11\",\"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\", + default: "[\"mysql-5.6\",\"mysql-5.7\",\"mysql-8\",\"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\",\"crdb-20.2\",\"crdb-21.1\",\"crdb-21.2\",\"crdb-22.1\",\"percona-xtradb-cluster-5.7\",\"percona-xtradb-cluster-8.0\", \"edb-edb-9.5\",\"edb-edb-9.6\",\"edb-edb-10\",\"edb-edb-11\",\"edb-edb-12\",\"edb-edb-13\",\"edb-edb-14\",\"db2-luw\",\"H2Database-2.2\",\"sqlite\",\"derby\", \"firebird-3\",\"firebird-4\",\"hsqldb-2.4\",\"hsqldb-2.5\",\"diff\"]" @@ -50,8 +49,8 @@ jobs: useLiquibaseSnapshot: ${{ steps.configure-build.outputs.useLiquibaseSnapshot }} liquibaseBranch: ${{ steps.configure-build.outputs.liquibaseBranch }} liquibaseRepo: ${{ steps.configure-build.outputs.liquibaseRepo }} - databases: ${{ github.event.inputs.databases || '["mysql-5.6","mysql-5.7","mysql-8","postgres-9.5", - "postgres-9","postgres-10","postgres-11","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", + databases: ${{ github.event.inputs.databases || '["mysql-5.6","mysql-5.7","mysql-8", + "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","crdb-20.2","crdb-21.1","crdb-21.2","crdb-22.1","percona-xtradb-cluster-5.7","percona-xtradb-cluster-8.0", "edb-edb-9.5","edb-edb-9.6","edb-edb-10","edb-edb-11","edb-edb-12","edb-edb-13","edb-edb-14","db2-luw","H2Database-2.2","sqlite","derby","firebird-3","firebird-4", "hsqldb-2.4","hsqldb-2.5","diff"]' }} @@ -207,9 +206,9 @@ jobs: working-directory: src/test/resources/docker run: ./create-infra.sh ${{ matrix.database }} env: - ARTIFACTORY_URL: ${{ secrets.ARTIFACTORY_URL }} - ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }} - ARTIFACTORY_TOKEN: ${{ secrets.ARTIFACTORY_TOKEN }} + REPO_URL: ${{ secrets.REPO_URL }} + REPO_USER: ${{ secrets.REPO_USER }} + REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }} - name: Configure Liquibase Version if: needs.setup.outputs.useLiquibaseSnapshot == 'true' diff --git a/.github/workflows/attach-artifact-release.yml b/.github/workflows/attach-artifact-release.yml index 71cbf200d..5fb0f0726 100644 --- a/.github/workflows/attach-artifact-release.yml +++ b/.github/workflows/attach-artifact-release.yml @@ -7,5 +7,5 @@ on: jobs: attach-artifact-to-release: - uses: liquibase/build-logic/.github/workflows/extension-attach-artifact-release.yml@v0.7.0 + uses: liquibase/build-logic/.github/workflows/extension-attach-artifact-release.yml@v0.7.7 secrets: inherit \ No newline at end of file diff --git a/.github/workflows/aws-weekly.yml b/.github/workflows/aws-weekly.yml new file mode 100644 index 000000000..fd5c8976f --- /dev/null +++ b/.github/workflows/aws-weekly.yml @@ -0,0 +1,291 @@ +# Terraform Action to test Cloud Databases with test-harness + +name: AWS Weekly Cloud Database Test Execution +concurrency: aws-run +on: + # Triggers the workflow on a schedule for the main branch. Also allows for manual triggers + # Execute every sunday at 6:00 AM + schedule: + - cron: '0 6 * * 0' + workflow_dispatch: + inputs: + testClasses: + type: choice + description: Test Suite or test class to run + options: + - LiquibaseHarnessSuiteTest + - FoundationalHarnessSuiteTest + - AdvancedHarnessSuiteTest + - ChangeObjectTests + - ChangeDataTests + - SnapshotObjectTests + - GenerateChangelogTest + - FoundationalTest + 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\"]" + +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"]' }} + testClasses: ${{ inputs.testClasses || 'LiquibaseHarnessSuiteTest' }} + steps: + - name: Checkout + uses: actions/checkout@v4 + + deploy-ephemeral-cloud-infra: + uses: liquibase/build-logic/.github/workflows/ephemeral-cloud-infra.yml@DAT-17834 + secrets: inherit + with: + deploy: true + aws_test_harness: true + + init-mysql: + runs-on: ubuntu-latest + needs: [deploy-ephemeral-cloud-infra] + container: + image: liquibase/liquibase:latest + env: + LIQUIBASE_PRO_LICENSE_KEY: ${{ secrets.LICENSE_KEY }} + strategy: + fail-fast: false + matrix: + include: + - database: mysql + version: aws + - database: mysql + version: aurora + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + role-to-assume: ${{ secrets.AWS_DEV_GITHUB_OIDC_ROLE_ARN_BUILD_LOGIC }} + aws-region: us-east-1 + + - name: Get AWS secrets + uses: aws-actions/aws-secretsmanager-get-secrets@v2 + with: + secret-ids: | + TH_MYSQLURL_8_0, /testautomation/db_details/aws_mysql_jdbc${{ needs.deploy-ephemeral-cloud-infra.outputs.resources_id }} + TH_AURORA_MYSQLURL, /testautomation/db_details/aurora_mysql_jdbc${{ needs.deploy-ephemeral-cloud-infra.outputs.resources_id }} + TH_ORACLEURL_19, /testautomation/db_details/aws_oracle_19_jdbc${{ needs.deploy-ephemeral-cloud-infra.outputs.resources_id }} + TH_PGRESURL_12, /testautomation/db_details/aws_postgresql_12_jdbc${{ needs.deploy-ephemeral-cloud-infra.outputs.resources_id }} + TH_PGRESURL_13, /testautomation/db_details/aws_postgresql_13_jdbc${{ needs.deploy-ephemeral-cloud-infra.outputs.resources_id }} + TH_PGRESURL_14, /testautomation/db_details/aws_postgresql_14_jdbc${{ needs.deploy-ephemeral-cloud-infra.outputs.resources_id }} + TH_MARIADBURL_10_6, /testautomation/db_details/aws_mariadb_jdbc${{ needs.deploy-ephemeral-cloud-infra.outputs.resources_id }} + TH_MSSQLURL, /testautomation/db_details/aws_mssql_jdbc${{ needs.deploy-ephemeral-cloud-infra.outputs.resources_id }} + TH_AURORA_POSTGRESQLURL, /testautomation/db_details/aurora_postgresql_jdbc${{ needs.deploy-ephemeral-cloud-infra.outputs.resources_id }} + + #This additional init step is required because of mysql driver issue on GH actions + - name: Install Dependencies + run: lpm update && lpm add mysql + + - name: Clean AWS MySQL Database + uses: liquibase-github-actions/drop-all@v4.25.1 + if: ${{ matrix.version == 'aws' }} + with: + url: "${{ env.TH_MYSQLURL_8_0 }}" + username: "${{secrets.TH_DB_ADMIN}}" + password: "${{secrets.TH_DB_PASSWD}}" + licenseKey: "${{secrets.LICENSE_KEY}}" + + - name: Init Database + if: ${{ matrix.version == 'aws' }} + run: liquibase --classpath="src/test/resources/init-changelogs/aws" --changeLogFile="${{ matrix.database }}.sql" --username="${{ secrets.TH_DB_ADMIN }}" --password="${{ secrets.TH_DB_PASSWD }}" --url="${{ env.TH_MYSQLURL_8_0 }}" update + + - name: Clean Aurora MySQL Database + uses: liquibase-github-actions/drop-all@v4.25.1 + if: ${{ matrix.version == 'aurora' }} + with: + url: "${{ env.TH_AURORA_MYSQLURL }}" + username: "${{secrets.TH_DB_ADMIN}}" + password: "${{secrets.TH_DB_PASSWD}}" + licenseKey: "${{secrets.LICENSE_KEY}}" + + - name: Init Database + if: ${{ matrix.version == 'aurora' }} + run: liquibase --classpath="src/test/resources/init-changelogs/aws" --changeLogFile="${{ matrix.database }}.sql" --username="${{ secrets.TH_DB_ADMIN }}" --password="${{ secrets.TH_DB_PASSWD }}" --url="${{ env.TH_AURORA_MYSQLURL }}" update + + test: + needs: [init-mysql, setup] + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + database: ${{ fromJson(needs.setup.outputs.databases) }} + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Configure Test + id: setup + uses: actions/github-script@v7.0.1 + with: + script: | + let splitValues = "${{ matrix.database }}".split(":") + core.setOutput("databasePlatform", splitValues[0]); + core.setOutput("databaseVersion", splitValues[1]); + + - uses: liquibase-github-actions/drop-all@v4.25.1 + if: ${{ steps.setup.outputs.databasePlatform == 'oracle' }} + with: + url: "${{ env.TH_ORACLEURL_19 }}" + username: "${{secrets.TH_DB_ADMIN}}" + password: "${{secrets.TH_DB_PASSWD}}" + licenseKey: "${{secrets.LICENSE_KEY}}" + + - uses: liquibase/liquibase-github-action@v7 + if: ${{ steps.setup.outputs.databasePlatform == 'oracle' }} + with: + operation: "update" + classpath: "src/test/resources/init-changelogs/aws" + changeLogFile: "oracle.sql" + username: "${{secrets.TH_DB_ADMIN}}" + password: "${{secrets.TH_DB_PASSWD}}" + url: "${{ env.TH_ORACLEURL_19 }}" + + - uses: liquibase-github-actions/drop-all@v4.25.1 + if: ${{ steps.setup.outputs.databasePlatform == 'postgresql' && steps.setup.outputs.databaseVersion != 'aurora' }} + with: + url: "${{ env[format('TH_PGRESURL_{0}', steps.setup.outputs.databaseVersion)] }}" + username: "${{secrets.TH_DB_ADMIN}}" + password: "${{secrets.TH_DB_PASSWD}}" + licenseKey: "${{secrets.LICENSE_KEY}}" + + - uses: liquibase/liquibase-github-action@v7 + if: ${{ steps.setup.outputs.databasePlatform == 'postgresql' && steps.setup.outputs.databaseVersion != 'aurora' }} + with: + operation: "update" + classpath: "src/test/resources/init-changelogs/aws" + changeLogFile: "postgresql.sql" + username: "${{secrets.TH_DB_ADMIN}}" + password: "${{secrets.TH_DB_PASSWD}}" + url: "${{ env[format('TH_PGRESURL_{0}', steps.setup.outputs.databaseVersion)] }}" + + - uses: liquibase-github-actions/drop-all@v4.25.1 + if: ${{ steps.setup.outputs.databasePlatform == 'mariadb' }} + with: + url: "${{ env.TH_MARIADBURL_10_6 }}" + username: "${{secrets.TH_DB_ADMIN}}" + password: "${{secrets.TH_DB_PASSWD}}" + licenseKey: "${{secrets.LICENSE_KEY}}" + + - uses: liquibase/liquibase-github-action@v7 + if: ${{ steps.setup.outputs.databasePlatform == 'mariadb' }} + with: + operation: "update" + classpath: "src/test/resources/init-changelogs/aws" + changeLogFile: "mariadb.sql" + username: "${{secrets.TH_DB_ADMIN}}" + password: "${{secrets.TH_DB_PASSWD}}" + url: "${{ env.TH_MARIADBURL_10_6 }}" + + - uses: liquibase-github-actions/drop-all@v4.25.1 + if: ${{ steps.setup.outputs.databasePlatform == 'mssql' }} + with: + url: "${{ env.TH_MSSQLURL }}" + username: "${{secrets.TH_DB_ADMIN}}" + password: "${{secrets.TH_DB_PASSWD}}" + licenseKey: "${{secrets.LICENSE_KEY}}" + + - uses: liquibase/liquibase-github-action@v7 + if: ${{ steps.setup.outputs.databasePlatform == 'mssql' }} + with: + operation: "update" + classpath: "src/test/resources/init-changelogs/aws" + changeLogFile: "mssql.sql" + username: "${{secrets.TH_DB_ADMIN}}" + password: "${{secrets.TH_DB_PASSWD}}" + url: "${{ env.TH_MSSQLURL }}" + + - uses: liquibase-github-actions/drop-all@v4.25.1 + if: ${{ steps.setup.outputs.databasePlatform == 'postgresql' && steps.setup.outputs.databaseVersion == 'aurora' }} + with: + url: "${{ env.TH_AURORA_POSTGRESQLURL }}" + username: "${{secrets.TH_DB_ADMIN}}" + password: "${{secrets.TH_DB_PASSWD}}" + licenseKey: "${{secrets.LICENSE_KEY}}" + + - uses: liquibase/liquibase-github-action@v7 + if: ${{ steps.setup.outputs.databasePlatform == 'postgresql' && steps.setup.outputs.databaseVersion == 'aurora' }} + with: + operation: "update" + classpath: "src/test/resources/init-changelogs/aws" + changeLogFile: "postgresql.sql" + username: "${{secrets.TH_DB_ADMIN}}" + password: "${{secrets.TH_DB_PASSWD}}" + url: "${{ env.TH_AURORA_POSTGRESQLURL }}" + + - name: Cache local Maven repository + uses: actions/cache@v3 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + + - name: AWS RDS ${{ steps.setup.outputs.databasePlatform }}-${{ steps.setup.outputs.databaseVersion }} Test Run + if: ${{ steps.setup.outputs.databasePlatform == 'postgresql' && steps.setup.outputs.databaseVersion != 'aurora' }} + env: + LIQUIBASE_PRO_LICENSE_KEY: ${{ secrets.LICENSE_KEY }} + run: mvn -Dtest=${{ needs.setup.outputs.testClasses }} -DconfigFile=/harness-config-cloud.yml -DdbName=${{ steps.setup.outputs.databasePlatform }} -DdbVersion=${{ steps.setup.outputs.databaseVersion }} -Dprefix=aws -DdbUsername=${{secrets.TH_DB_ADMIN}} -DdbPassword=${{secrets.TH_DB_PASSWD}} -DdbUrl='${{ env[format('TH_PGRESURL_{0}', steps.setup.outputs.databaseVersion)] }}' test + + - name: AWS RDS ${{ steps.setup.outputs.databasePlatform }}-${{ steps.setup.outputs.databaseVersion }} Test Run + if: ${{ steps.setup.outputs.databasePlatform == 'oracle' }} + env: + LIQUIBASE_PRO_LICENSE_KEY: ${{ secrets.LICENSE_KEY }} + run: mvn -Dtest=${{ needs.setup.outputs.testClasses }} -DconfigFile=/harness-config-cloud.yml -DdbName=${{ steps.setup.outputs.databasePlatform }} -DdbVersion=${{ steps.setup.outputs.databaseVersion }} -DdbUsername=${{secrets.TH_DB_ADMIN}} -DdbPassword=${{secrets.TH_DB_PASSWD}} -DdbUrl='${{ env.TH_ORACLEURL_19 }}' test + + - name: AWS RDS ${{ steps.setup.outputs.databasePlatform }}-${{ steps.setup.outputs.databaseVersion }} Test Run + if: ${{ steps.setup.outputs.databasePlatform == 'mariadb' }} + env: + LIQUIBASE_PRO_LICENSE_KEY: ${{ secrets.LICENSE_KEY }} + run: mvn -Dtest=${{ needs.setup.outputs.testClasses }} -DconfigFile=/harness-config-cloud.yml -DdbName=${{ steps.setup.outputs.databasePlatform }} -DdbVersion=${{ steps.setup.outputs.databaseVersion }} -DdbUsername=${{secrets.TH_DB_ADMIN}} -DdbPassword=${{secrets.TH_DB_PASSWD}} -DdbUrl='${{ env.TH_MARIADBURL_10_6 }}' test + + - name: AWS RDS ${{ steps.setup.outputs.databasePlatform }}-${{ steps.setup.outputs.databaseVersion }} Test Run + if: ${{ steps.setup.outputs.databasePlatform == 'mysql' && steps.setup.outputs.databaseVersion == 'aws' }} + env: + LIQUIBASE_PRO_LICENSE_KEY: ${{ secrets.LICENSE_KEY }} + run: mvn -Dtest=${{ needs.setup.outputs.testClasses }} -DconfigFile=/harness-config-cloud.yml -DdbName=${{ steps.setup.outputs.databasePlatform }} -DdbVersion=${{ steps.setup.outputs.databaseVersion }} -DdbUsername=${{secrets.TH_DB_ADMIN}} -DdbPassword=${{secrets.TH_DB_PASSWD}} -DdbUrl='${{ env.TH_MYSQLURL_8_0 }}' test + + - name: AWS RDS ${{ steps.setup.outputs.databasePlatform }}-${{ steps.setup.outputs.databaseVersion }} Test Run + if: ${{ steps.setup.outputs.databasePlatform == 'mssql' }} + env: + LIQUIBASE_PRO_LICENSE_KEY: ${{ secrets.LICENSE_KEY }} + run: mvn -Dtest=${{ needs.setup.outputs.testClasses }} -DconfigFile=/harness-config-cloud.yml -DdbName=${{ steps.setup.outputs.databasePlatform }} -DdbVersion=${{ steps.setup.outputs.databaseVersion }} -DdbUsername=${{secrets.TH_DB_ADMIN}} -DdbPassword=${{secrets.TH_DB_PASSWD}} -DdbUrl='${{ env.TH_MSSQLURL }}' test + + - name: AWS Aurora ${{ steps.setup.outputs.databasePlatform }} Test Run + if: ${{ steps.setup.outputs.databasePlatform == 'mysql' && steps.setup.outputs.databaseVersion == 'aurora' }} + env: + LIQUIBASE_PRO_LICENSE_KEY: ${{ secrets.LICENSE_KEY }} + run: mvn -Dtest=${{ needs.setup.outputs.testClasses }} -DconfigFile=/harness-config-cloud.yml -DdbName=${{ steps.setup.outputs.databasePlatform }} -DdbVersion=${{ steps.setup.outputs.databaseVersion }} -DdbUsername=${{secrets.TH_DB_ADMIN}} -DdbPassword=${{secrets.TH_DB_PASSWD}} -DdbUrl='${{ env.TH_AURORA_MYSQLURL }}' test + + - name: AWS Aurora ${{ steps.setup.outputs.databasePlatform }} Test Run + if: ${{ steps.setup.outputs.databasePlatform == 'postgresql' && steps.setup.outputs.databaseVersion == 'aurora' }} + env: + LIQUIBASE_PRO_LICENSE_KEY: ${{ secrets.LICENSE_KEY }} + run: mvn -Dtest=${{ needs.setup.outputs.testClasses }} -DconfigFile=/harness-config-cloud.yml -DdbName=${{ steps.setup.outputs.databasePlatform }} -DdbVersion=13 -Dprefix=aurora -DdbUsername=${{secrets.TH_DB_ADMIN}} -DdbPassword=${{secrets.TH_DB_PASSWD}} -DdbUrl='${{ env.TH_AURORA_POSTGRESQLURL }}' test + + - name: Archive AWS RDS ${{ steps.setup.outputs.databasePlatform }}-${{ steps.setup.outputs.databaseVersion }} Test Results + uses: actions/upload-artifact@v4 + with: + name: aws-rds-${{ steps.setup.outputs.databasePlatform }}-${{ steps.setup.outputs.databaseVersion }}-test-results + path: build/spock-reports + + destroy-ephemeral-cloud-infra: + if: always() + needs: [ deploy-ephemeral-cloud-infra, test ] + uses: liquibase/build-logic/.github/workflows/ephemeral-cloud-infra.yml@DAT-17834 + secrets: inherit + with: + destroy: true + stack_id: ${{ needs.deploy-ephemeral-cloud-infra.outputs.stack_id }} + aws_test_harness: true \ No newline at end of file diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml index 8c9d59549..83313ce5f 100644 --- a/.github/workflows/aws.yml +++ b/.github/workflows/aws.yml @@ -5,7 +5,7 @@ concurrency: aws-run on: # Triggers the workflow on a schedule for the main branch. Also allows for manual triggers schedule: - - cron: '0 6 * * *' # Execute every day at noon + - cron: '0 6 * * *' # Execute every day at 6AM UTC workflow_dispatch: inputs: testClasses: @@ -23,14 +23,14 @@ on: databases: description: Databases to start up. Comma separated list of "name:version" required: true - default: "[\"postgresql:11\",\"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:2019\",\"postgresql:aurora\"]" jobs: setup: name: Setup runs-on: ubuntu-latest outputs: - databases: ${{ github.event.inputs.databases || '["postgresql:11","postgresql:12","postgresql:13","postgresql:14","postgresql:16","oracle:aws_19", + 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"]' }} testClasses: ${{ inputs.testClasses || 'LiquibaseHarnessSuiteTest' }} steps: @@ -75,7 +75,8 @@ jobs: run: | pip install localstack awscli-local docker pull localstack/localstack-pro - DOCKER_FLAGS='-e MSSQL_ACCEPT_EULA=Y' localstack start -d + docker pull mcr.microsoft.com/mssql/server:2019-latest + DOCKER_FLAGS='-e MSSQL_ACCEPT_EULA=Y -e MSSQL_IMAGE=mcr.microsoft.com/mssql/server:2019-latest' localstack start -d echo "Waiting for LocalStack startup..." localstack wait -t 30 echo "Startup complete" @@ -83,7 +84,6 @@ jobs: echo "TH_DB_PASSWD=test" >> $GITHUB_ENV echo "TH_DB_PASSWD_MSSQL=Test.2024" >> $GITHUB_ENV echo "TH_DB=lbcat" >> $GITHUB_ENV - echo "TH_AURORA_MYSQL_ENGINE=8.0" >> $GITHUB_ENV echo "TH_AURORA_POSTGRESQL_ENGINE=16" >> $GITHUB_ENV echo "TH_MARIADB_ENGINE=10.6" >> $GITHUB_ENV echo "TH_MSSQL_ENGINE=2019" >> $GITHUB_ENV @@ -101,7 +101,7 @@ jobs: - name: Init Aurora MySQL Database if: ${{ steps.setup.outputs.databasePlatform == 'mysql' && steps.setup.outputs.databaseVersion == 'aurora' }} run: | - awslocal rds create-db-cluster --db-cluster-identifier aurora-mysql-primary-cluster --engine aurora-mysql --engine-version ${{ env.TH_AURORA_MYSQL_ENGINE }} --database-name ${{ env.TH_DB }} --master-username ${{ env.TH_DB_ADMIN }} --master-user-password ${{ env.TH_DB_PASSWD }} + awslocal rds create-db-cluster --db-cluster-identifier aurora-mysql-primary-cluster --engine aurora-mysql --database-name ${{ env.TH_DB }} --master-username ${{ env.TH_DB_ADMIN }} --master-user-password ${{ env.TH_DB_PASSWD }} awslocal rds create-db-instance --db-instance-identifier aurora-mysql-primary-cluster-instance --db-cluster-identifier aurora-mysql-primary-cluster --engine aurora-mysql --db-instance-class db.t3.medium aurora_mysql_port=$(awslocal rds describe-db-instances --db-instance-identifier aurora-mysql-primary-cluster-instance --query 'DBInstances[0].Endpoint.Port' | jq -r) aurora_mysql_url="jdbc:mysql://localhost:$aurora_mysql_port/${{ env.TH_DB }}" @@ -131,17 +131,6 @@ jobs: sleep 30 liquibase --classpath="src/test/resources/init-changelogs/aws" --changeLogFile="${{ steps.setup.outputs.databasePlatform }}.sql" --username="${{ env.TH_DB_ADMIN }}" --password="${{ env.TH_DB_PASSWD }}" --url="$mariadb_url" update - - name: Init PostgreSQL 11 Database - if: ${{ steps.setup.outputs.databasePlatform == 'postgresql' && steps.setup.outputs.databaseVersion != 'aurora' && steps.setup.outputs.databaseVersion == '11' }} - run: | - awslocal rds create-db-cluster --db-cluster-identifier postgres11-primary-cluster --engine postgres --engine-version 11 --database-name ${{ env.TH_DB }} --master-username ${{ env.TH_DB_ADMIN }} --master-user-password ${{ env.TH_DB_PASSWD }} - awslocal rds create-db-instance --db-instance-identifier postgres11-primary-cluster-instance --db-cluster-identifier postgres11-primary-cluster --engine postgres --db-instance-class db.t3.medium - postgres11_port=$(awslocal rds describe-db-instances --db-instance-identifier postgres11-primary-cluster-instance --query 'DBInstances[0].Endpoint.Port' | jq -r) - postgres11_url="jdbc:postgresql://localhost:$postgres11_port/${{ env.TH_DB }}" - echo "TH_PGRESURL_11=$postgres11_url" >> $GITHUB_ENV - sleep 30 - liquibase --classpath="src/test/resources/init-changelogs/aws" --changeLogFile="${{ steps.setup.outputs.databasePlatform }}.sql" --username="${{ env.TH_DB_ADMIN }}" --password="${{ env.TH_DB_PASSWD }}" --url="$postgres11_url" update - - name: Init PostgreSQL 12 Database if: ${{ steps.setup.outputs.databasePlatform == 'postgresql' && steps.setup.outputs.databaseVersion != 'aurora' && steps.setup.outputs.databaseVersion == '12' }} run: | @@ -234,12 +223,6 @@ jobs: restore-keys: | ${{ runner.os }}-maven- - - name: AWS RDS ${{ steps.setup.outputs.databasePlatform }}-${{ steps.setup.outputs.databaseVersion }} Test Run - if: ${{ steps.setup.outputs.databasePlatform == 'postgresql' && steps.setup.outputs.databaseVersion != 'aurora' && steps.setup.outputs.databaseVersion == '11' }} - env: - LIQUIBASE_PRO_LICENSE_KEY: ${{ secrets.LICENSE_KEY }} - run: mvn -Dtest=${{ needs.setup.outputs.testClasses }} -DconfigFile=/harness-config-cloud.yml -DdbName=${{ steps.setup.outputs.databasePlatform }} -DdbVersion=${{ steps.setup.outputs.databaseVersion }} -Dprefix=aws -DdbUsername=${{env.TH_DB_ADMIN}} -DdbPassword=${{env.TH_DB_PASSWD}} -DdbUrl='${{ env.TH_PGRESURL_11 }}' test - - name: AWS RDS ${{ steps.setup.outputs.databasePlatform }}-${{ steps.setup.outputs.databaseVersion }} Test Run if: ${{ steps.setup.outputs.databasePlatform == 'postgresql' && steps.setup.outputs.databaseVersion != 'aurora' && steps.setup.outputs.databaseVersion == '12' }} env: @@ -304,4 +287,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: aws-rds-${{ steps.setup.outputs.databasePlatform }}-${{ steps.setup.outputs.databaseVersion }}-test-results - path: build/spock-reports \ No newline at end of file + path: build/spock-reports diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 28654af93..fabecd25e 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -7,5 +7,5 @@ on: jobs: create-release: - uses: liquibase/build-logic/.github/workflows/create-release.yml@v0.7.0 + uses: liquibase/build-logic/.github/workflows/create-release.yml@v0.7.7 secrets: inherit diff --git a/.github/workflows/fossa_ai.yml b/.github/workflows/fossa_ai.yml new file mode 100644 index 000000000..df1aa222c --- /dev/null +++ b/.github/workflows/fossa_ai.yml @@ -0,0 +1,17 @@ +name: FOSSA License Compliance and Security Check + +on: + pull_request: + types: + - opened + - reopened + - synchronize + +jobs: + fossa: + uses: liquibase/build-logic/.github/workflows/fossa_ai.yml@main + secrets: inherit + with: + check_snippets: true + check_ai_generated_code: true + generate_sbom: true diff --git a/.github/workflows/gcp.yml b/.github/workflows/gcp.yml index 6c1e16ddd..5362502b7 100644 --- a/.github/workflows/gcp.yml +++ b/.github/workflows/gcp.yml @@ -5,7 +5,7 @@ concurrency: gcp-run on: # Triggers the workflow on a schedule for the main branch. Also allows for manual triggers schedule: - - cron: '0 6 * * *' # Execute every day at noon + - cron: '0 6 * * *' # Execute every day at 6AM UTC workflow_dispatch: inputs: testClasses: @@ -23,14 +23,14 @@ on: databases: description: Databases to start up. Comma separated list of "name:version" required: true - default: "[\"postgresql:11\",\"postgresql:12\",\"postgresql:13\",\"postgresql:14\",\"mysql:gcp\",\"mssql:gcp\"]" + default: "[\"postgresql:12\",\"postgresql:13\",\"postgresql:14\",\"mysql:gcp\",\"mssql:gcp\"]" jobs: setup: name: Setup runs-on: ubuntu-latest outputs: - databases: ${{ github.event.inputs.databases || '["postgresql:11","postgresql:12","postgresql:13","postgresql:14","mysql:gcp","mssql:gcp"]' }} + databases: ${{ github.event.inputs.databases || '["postgresql:12","postgresql:13","postgresql:14","mysql:gcp","mssql:gcp"]' }} testClasses: ${{ inputs.testClasses || 'LiquibaseHarnessSuiteTest' }} steps: - name: Checkout @@ -162,4 +162,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: gcp-${{ steps.setup.outputs.databasePlatform }}-${{ steps.setup.outputs.databaseVersion }}-test-results - path: build/spock-reports \ No newline at end of file + path: build/spock-reports diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0a5f6a681..d62b935d0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -59,10 +59,6 @@ on: "mysql-8", "percona-xtradb-cluster-5.7", "percona-xtradb-cluster-8.0", - "postgres-9.5", - "postgres-9", - "postgres-10", - "postgres-11", "postgres-12", "postgres-13", "postgres-14", @@ -123,8 +119,8 @@ 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","postgres-9.5", - "postgres-9","postgres-10","postgres-11","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", + databases: ${{ github.event.inputs.databases || '["mysql-5.6","mysql-5.7","mysql-8","percona-xtradb-cluster-5.7","percona-xtradb-cluster-8.0", + "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-20.2","crdb-21.1","crdb-21.2","crdb-22.1","edb-postgres-9.5","edb-postgres-9.6", "edb-postgres-10","edb-postgres-11","edb-postgres-12","edb-postgres-13","edb-postgres-14","edb-edb-9.5","edb-edb-9.6","edb-edb-10","edb-edb-11", "edb-edb-12","edb-edb-13","edb-edb-14","derby","sqlite","hsqldb-2.4","hsqldb-2.5","firebird-3","firebird-4","db2-luw"]' }} @@ -269,14 +265,6 @@ jobs: buildOverview="$(mvn -B -q liquibase-sdk:get-build-info '-Dliquibase.sdk.buildInfo.outputKey=overview' '-Dliquibase.sdk.repo=liquibase/liquibase-pro')" echo "::notice :: Installed Snapshot Liquibase-pro $buildOverview" - mvn -B liquibase-sdk:set-commit-status \ - "-Dliquibase.sdk.repo=${{ steps.configure-build.outputs.liquibaseRepo }}" \ - "-Dliquibase.sdk.status.context=Run Test Harness" \ - "-Dliquibase.sdk.status.state=PENDING" \ - "-Dliquibase.sdk.status.url=https://github.com/liquibase/liquibase-test-harness/actions/runs/${{ github.run_id }}" \ - "-Dliquibase.sdk.status.description=Internal functional tests" \ - "-Dliquibase.sdk.status.commit=installed" - - name: Cache installed Liquibase uses: actions/cache@v4 with: @@ -310,9 +298,9 @@ jobs: working-directory: src/test/resources/docker run: ./create-infra.sh ${{ matrix.database }} env: - ARTIFACTORY_URL: ${{ secrets.ARTIFACTORY_URL }} - ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }} - ARTIFACTORY_TOKEN: ${{ secrets.ARTIFACTORY_TOKEN }} + REPO_URL: ${{ secrets.REPO_URL }} + REPO_USER: ${{ secrets.REPO_USER }} + REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }} - name: Configure Liquibase Version env: diff --git a/.github/workflows/oracle-oci.yml b/.github/workflows/oracle-oci.yml index d9254d940..7cb5c1fd6 100644 --- a/.github/workflows/oracle-oci.yml +++ b/.github/workflows/oracle-oci.yml @@ -5,7 +5,7 @@ concurrency: oracle-oci-run on: # Triggers the workflow on a schedule for the main branch. Also allows for manual triggers schedule: - - cron: '0 6 * * *' # Execute every day at noon + - cron: '0 6 * * *' # Execute every day at 6AM UTC workflow_dispatch: inputs: testClasses: @@ -60,4 +60,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: oracle-oci-test-results - path: build/spock-reports \ No newline at end of file + path: build/spock-reports diff --git a/.github/workflows/release-published.yml b/.github/workflows/release-published.yml index 3a6138a39..c9c570322 100644 --- a/.github/workflows/release-published.yml +++ b/.github/workflows/release-published.yml @@ -7,5 +7,5 @@ on: jobs: release: - uses: liquibase/build-logic/.github/workflows/extension-release-published.yml@v0.7.0 + uses: liquibase/build-logic/.github/workflows/extension-release-published.yml@v0.7.7 secrets: inherit \ No newline at end of file diff --git a/.github/workflows/snowflake.yml b/.github/workflows/snowflake.yml index 1cc0a6af3..a6017514d 100644 --- a/.github/workflows/snowflake.yml +++ b/.github/workflows/snowflake.yml @@ -3,7 +3,7 @@ concurrency: snowflake-run on: # Triggers the workflow on a schedule for the main branch. Also allows for manual triggers schedule: - - cron: '0 7 * * *' # Execute every day at noon + - cron: '0 7 * * *' # Execute every day at 7AM UTC workflow_dispatch: jobs: diff --git a/README.md b/README.md index 345849cf1..a8a5e0815 100644 --- a/README.md +++ b/README.md @@ -7,21 +7,21 @@ | Database | Versions Tested | Verification Level | |---------------------------|---------------------------------------|--------------------------------| | Aurora MySQL | `8` | Advanced | -| Aurora Postgres | `14` | Advanced | -| AWS Postgres RDS | `11, 12, 13, 14` | Advanced | +| Aurora Postgres | `14, 16` | Advanced | +| AWS Postgres RDS | `12, 13, 14, 16` | Advanced | | AWS Oracle RDS | `19.0` | Advanced | | AWS MySQL | `8` | Advanced | | AWS MariaDB | `10.6` | Advanced | | AWS SQL Server | `2019` | Advanced | | Azure SQL DB | `latest` | Advanced | | Azure SQL MI | `latest` | BaseHarnessSuite | -| Azure PostgreSQL SS | `11` | Advanced | -| Azure PostgreSQL FlS | `14` | Advanced | -| GCP PostgreSQL | `11, 12, 13, 14` | Advanced | +| Azure PostgreSQL SS | `15, 16` | Advanced | +| Azure PostgreSQL FlS | `14, 15, 16` | Advanced | +| GCP PostgreSQL | `12, 13, 14` | Advanced | | GCP MySQL | `8` | Advanced | | GCP SQL Server | `2019` | Advanced | | MariaDB | `10.2, 10.3 , 10.4, 10.5, 10.6, 10.7` | Advanced | -| Postgres | `9, 9.5, 10, 11, 12, 13, 14, 15` | Advanced | +| Postgres | `12, 13, 14, 15, 16` | Advanced | | MySQL | `5.6, 5.7, 8` | Advanced | | SQL Server | `2017`, `2019`, `2022` | Advanced | | Percona XtraDB | `5.7`, `8.0` | Advanced | diff --git a/pom.xml b/pom.xml index c24636e30..74b6c5158 100644 --- a/pom.xml +++ b/pom.xml @@ -157,7 +157,7 @@ org.xerial sqlite-jdbc - 3.45.2.0 + 3.45.3.0 test diff --git a/src/main/resources/liquibase/harness/change/changelogs/postgresql/10/createSequence.sql b/src/main/resources/liquibase/harness/change/changelogs/postgresql/10/createSequence.sql deleted file mode 100644 index 0fc370262..000000000 --- a/src/main/resources/liquibase/harness/change/changelogs/postgresql/10/createSequence.sql +++ /dev/null @@ -1,6 +0,0 @@ ---liquibase formatted sql ---changeset oleh:1 --- Database: postgresql --- Change Parameter: sequenceName=test_sequence -CREATE SEQUENCE IF NOT EXISTS test_sequence AS int START WITH 1 INCREMENT BY 1 MINVALUE 1 ---rollback DROP SEQUENCE test_sequence diff --git a/src/main/resources/liquibase/harness/change/changelogs/postgresql/11/createSequence.sql b/src/main/resources/liquibase/harness/change/changelogs/postgresql/11/createSequence.sql deleted file mode 100644 index 0fc370262..000000000 --- a/src/main/resources/liquibase/harness/change/changelogs/postgresql/11/createSequence.sql +++ /dev/null @@ -1,6 +0,0 @@ ---liquibase formatted sql ---changeset oleh:1 --- Database: postgresql --- Change Parameter: sequenceName=test_sequence -CREATE SEQUENCE IF NOT EXISTS test_sequence AS int START WITH 1 INCREMENT BY 1 MINVALUE 1 ---rollback DROP SEQUENCE test_sequence diff --git a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.5/alterSequence.xml b/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.5/alterSequence.xml deleted file mode 100644 index 91529b256..000000000 --- a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.5/alterSequence.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - diff --git a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.5/createSequence.sql b/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.5/createSequence.sql deleted file mode 100644 index 2498f04a3..000000000 --- a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.5/createSequence.sql +++ /dev/null @@ -1,6 +0,0 @@ ---liquibase formatted sql ---changeset oleh:1 --- Database: postgresql --- Change Parameter: sequenceName=test_sequence -CREATE SEQUENCE IF NOT EXISTS test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 ---rollback DROP SEQUENCE test_sequence diff --git a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.5/createSequence.xml b/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.5/createSequence.xml deleted file mode 100644 index e4660e157..000000000 --- a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.5/createSequence.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - diff --git a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.5/datatypes.network.xml b/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.5/datatypes.network.xml deleted file mode 100644 index ea4c66ce4..000000000 --- a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.5/datatypes.network.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.5/dropSequence.xml b/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.5/dropSequence.xml deleted file mode 100644 index da23a38ff..000000000 --- a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.5/dropSequence.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - diff --git a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.5/renameSequence.xml b/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.5/renameSequence.xml deleted file mode 100644 index 697958896..000000000 --- a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.5/renameSequence.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - diff --git a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.6/alterSequence.xml b/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.6/alterSequence.xml deleted file mode 100644 index a9237a792..000000000 --- a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.6/alterSequence.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - diff --git a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.6/createSequence.sql b/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.6/createSequence.sql deleted file mode 100644 index 2498f04a3..000000000 --- a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.6/createSequence.sql +++ /dev/null @@ -1,6 +0,0 @@ ---liquibase formatted sql ---changeset oleh:1 --- Database: postgresql --- Change Parameter: sequenceName=test_sequence -CREATE SEQUENCE IF NOT EXISTS test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 ---rollback DROP SEQUENCE test_sequence diff --git a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.6/createSequence.xml b/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.6/createSequence.xml deleted file mode 100644 index e4660e157..000000000 --- a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.6/createSequence.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - diff --git a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.6/datatypes.network.xml b/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.6/datatypes.network.xml deleted file mode 100644 index 8d61fb8a4..000000000 --- a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.6/datatypes.network.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.6/dropSequence.xml b/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.6/dropSequence.xml deleted file mode 100644 index da23a38ff..000000000 --- a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.6/dropSequence.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - diff --git a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.6/renameSequence.xml b/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.6/renameSequence.xml deleted file mode 100644 index 697958896..000000000 --- a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9.6/renameSequence.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - diff --git a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9/alterSequence.xml b/src/main/resources/liquibase/harness/change/changelogs/postgresql/9/alterSequence.xml deleted file mode 100644 index a7eee7fe8..000000000 --- a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9/alterSequence.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - diff --git a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9/createSequence.sql b/src/main/resources/liquibase/harness/change/changelogs/postgresql/9/createSequence.sql deleted file mode 100644 index 2498f04a3..000000000 --- a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9/createSequence.sql +++ /dev/null @@ -1,6 +0,0 @@ ---liquibase formatted sql ---changeset oleh:1 --- Database: postgresql --- Change Parameter: sequenceName=test_sequence -CREATE SEQUENCE IF NOT EXISTS test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 ---rollback DROP SEQUENCE test_sequence diff --git a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9/createSequence.xml b/src/main/resources/liquibase/harness/change/changelogs/postgresql/9/createSequence.xml deleted file mode 100644 index e4660e157..000000000 --- a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9/createSequence.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - diff --git a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9/datatypes.network.xml b/src/main/resources/liquibase/harness/change/changelogs/postgresql/9/datatypes.network.xml deleted file mode 100644 index 4c54d927a..000000000 --- a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9/datatypes.network.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9/dropSequence.xml b/src/main/resources/liquibase/harness/change/changelogs/postgresql/9/dropSequence.xml deleted file mode 100644 index da23a38ff..000000000 --- a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9/dropSequence.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - diff --git a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9/renameSequence.xml b/src/main/resources/liquibase/harness/change/changelogs/postgresql/9/renameSequence.xml deleted file mode 100644 index 697958896..000000000 --- a/src/main/resources/liquibase/harness/change/changelogs/postgresql/9/renameSequence.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/edb-edb/createView.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/edb-edb/createView.json new file mode 100644 index 000000000..864e64e9b --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSnapshot/edb-edb/createView.json @@ -0,0 +1,13 @@ +{ + "snapshot": { + "objects": { + "liquibase.structure.core.View": [ + { + "view": { + "definition": "SELECT authors.id,\n authors.first_name,\n authors.last_name,\n authors.email\n FROM authors;", + "name": "test_view" + } + }] + } + } +} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/edb-postgres/createView.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/edb-postgres/createView.json index aeae5699b..864e64e9b 100644 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/edb-postgres/createView.json +++ b/src/main/resources/liquibase/harness/change/expectedSnapshot/edb-postgres/createView.json @@ -4,7 +4,7 @@ "liquibase.structure.core.View": [ { "view": { - "definition": " SELECT authors.id,\n authors.first_name,\n authors.last_name,\n authors.email\n FROM authors;", + "definition": "SELECT authors.id,\n authors.first_name,\n authors.last_name,\n authors.email\n FROM authors;", "name": "test_view" } }] diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/mariadb/createTrigger.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/mariadb/createTrigger.json index 385ae74d4..ab8689cf5 100644 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/mariadb/createTrigger.json +++ b/src/main/resources/liquibase/harness/change/expectedSnapshot/mariadb/createTrigger.json @@ -4,7 +4,7 @@ "com.datical.liquibase.ext.storedlogic.trigger.Trigger": [ { "trigger": { - "body": "CREATE TRIGGER test_trigger BEFORE UPDATE ON posts FOR EACH ROW BEGIN END", + "body": "CREATE TRIGGER test_trigger BEFORE UPDATE ON posts FOR EACH ROW BEGIN END\n", "disabled": false, "name": "test_trigger", "tableName": "posts", diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/mysql/createTrigger.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/mysql/createTrigger.json index 385ae74d4..ab8689cf5 100644 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/mysql/createTrigger.json +++ b/src/main/resources/liquibase/harness/change/expectedSnapshot/mysql/createTrigger.json @@ -4,7 +4,7 @@ "com.datical.liquibase.ext.storedlogic.trigger.Trigger": [ { "trigger": { - "body": "CREATE TRIGGER test_trigger BEFORE UPDATE ON posts FOR EACH ROW BEGIN END", + "body": "CREATE TRIGGER test_trigger BEFORE UPDATE ON posts FOR EACH ROW BEGIN END\n", "disabled": false, "name": "test_trigger", "tableName": "posts", diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/percona-xtradb-cluster/createTrigger.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/percona-xtradb-cluster/createTrigger.json index 385ae74d4..ab8689cf5 100644 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/percona-xtradb-cluster/createTrigger.json +++ b/src/main/resources/liquibase/harness/change/expectedSnapshot/percona-xtradb-cluster/createTrigger.json @@ -4,7 +4,7 @@ "com.datical.liquibase.ext.storedlogic.trigger.Trigger": [ { "trigger": { - "body": "CREATE TRIGGER test_trigger BEFORE UPDATE ON posts FOR EACH ROW BEGIN END", + "body": "CREATE TRIGGER test_trigger BEFORE UPDATE ON posts FOR EACH ROW BEGIN END\n", "disabled": false, "name": "test_trigger", "tableName": "posts", diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/10/createSequence.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/10/createSequence.json deleted file mode 100644 index c44f57a5a..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/10/createSequence.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "snapshot": { - "objects": { - "liquibase.structure.core.Sequence": [ - { - "sequence": { - "dataType": "integer", - "incrementBy": "1.*", - "maxValue": "2147483647.*", - "minValue": "1.*", - "name": "test_sequence", - "startValue": "1.*", - "willCycle": false - } - } - ] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/10/createTrigger.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/10/createTrigger.json deleted file mode 100644 index 25fe9996e..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/10/createTrigger.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "snapshot": { - "objects": { - "com.datical.liquibase.ext.storedlogic.trigger.Trigger": [ - { - "trigger": { - "body": "CREATE TRIGGER test_trigger BEFORE INSERT ON public.posts FOR EACH ROW EXECUTE PROCEDURE test_function()", - "disabled": false, - "name": "test_trigger", - "tableName": "posts", - "valid": true - } - }] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/10/disableTrigger.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/10/disableTrigger.json deleted file mode 100644 index 21bde385a..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/10/disableTrigger.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "snapshot": { - "objects": { - "com.datical.liquibase.ext.storedlogic.trigger.Trigger": [ - { - "trigger": { - "body": "CREATE TRIGGER test_trigger BEFORE INSERT ON public.posts FOR EACH ROW EXECUTE PROCEDURE test_function()", - "disabled": true, - "name": "test_trigger", - "tableName": "posts", - "valid": true - } - }] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/10/enableTrigger.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/10/enableTrigger.json deleted file mode 100644 index 25fe9996e..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/10/enableTrigger.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "snapshot": { - "objects": { - "com.datical.liquibase.ext.storedlogic.trigger.Trigger": [ - { - "trigger": { - "body": "CREATE TRIGGER test_trigger BEFORE INSERT ON public.posts FOR EACH ROW EXECUTE PROCEDURE test_function()", - "disabled": false, - "name": "test_trigger", - "tableName": "posts", - "valid": true - } - }] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/10/renameTrigger.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/10/renameTrigger.json deleted file mode 100644 index 2dd7510c0..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/10/renameTrigger.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "snapshot": { - "objects": { - "com.datical.liquibase.ext.storedlogic.trigger.Trigger": [ - { - "trigger": { - "body": "CREATE TRIGGER test_trigger_renamed BEFORE INSERT ON public.posts FOR EACH ROW EXECUTE PROCEDURE test_function()", - "disabled": false, - "name": "test_trigger_renamed", - "tableName": "posts", - "valid": true - } - }] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/11/createSequence.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/11/createSequence.json deleted file mode 100644 index c44f57a5a..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/11/createSequence.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "snapshot": { - "objects": { - "liquibase.structure.core.Sequence": [ - { - "sequence": { - "dataType": "integer", - "incrementBy": "1.*", - "maxValue": "2147483647.*", - "minValue": "1.*", - "name": "test_sequence", - "startValue": "1.*", - "willCycle": false - } - } - ] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/11/createTrigger.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/11/createTrigger.json deleted file mode 100644 index 25fe9996e..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/11/createTrigger.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "snapshot": { - "objects": { - "com.datical.liquibase.ext.storedlogic.trigger.Trigger": [ - { - "trigger": { - "body": "CREATE TRIGGER test_trigger BEFORE INSERT ON public.posts FOR EACH ROW EXECUTE PROCEDURE test_function()", - "disabled": false, - "name": "test_trigger", - "tableName": "posts", - "valid": true - } - }] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/11/disableTrigger.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/11/disableTrigger.json deleted file mode 100644 index 21bde385a..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/11/disableTrigger.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "snapshot": { - "objects": { - "com.datical.liquibase.ext.storedlogic.trigger.Trigger": [ - { - "trigger": { - "body": "CREATE TRIGGER test_trigger BEFORE INSERT ON public.posts FOR EACH ROW EXECUTE PROCEDURE test_function()", - "disabled": true, - "name": "test_trigger", - "tableName": "posts", - "valid": true - } - }] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/11/enableTrigger.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/11/enableTrigger.json deleted file mode 100644 index 25fe9996e..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/11/enableTrigger.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "snapshot": { - "objects": { - "com.datical.liquibase.ext.storedlogic.trigger.Trigger": [ - { - "trigger": { - "body": "CREATE TRIGGER test_trigger BEFORE INSERT ON public.posts FOR EACH ROW EXECUTE PROCEDURE test_function()", - "disabled": false, - "name": "test_trigger", - "tableName": "posts", - "valid": true - } - }] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/11/renameTrigger.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/11/renameTrigger.json deleted file mode 100644 index 2dd7510c0..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/11/renameTrigger.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "snapshot": { - "objects": { - "com.datical.liquibase.ext.storedlogic.trigger.Trigger": [ - { - "trigger": { - "body": "CREATE TRIGGER test_trigger_renamed BEFORE INSERT ON public.posts FOR EACH ROW EXECUTE PROCEDURE test_function()", - "disabled": false, - "name": "test_trigger_renamed", - "tableName": "posts", - "valid": true - } - }] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.5/alterSequence.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.5/alterSequence.json deleted file mode 100644 index f1c16d223..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.5/alterSequence.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "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/postgresql/9.5/createSequence.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.5/createSequence.json deleted file mode 100644 index f1c16d223..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.5/createSequence.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "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/postgresql/9.5/createTrigger.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.5/createTrigger.json deleted file mode 100644 index 25fe9996e..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.5/createTrigger.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "snapshot": { - "objects": { - "com.datical.liquibase.ext.storedlogic.trigger.Trigger": [ - { - "trigger": { - "body": "CREATE TRIGGER test_trigger BEFORE INSERT ON public.posts FOR EACH ROW EXECUTE PROCEDURE test_function()", - "disabled": false, - "name": "test_trigger", - "tableName": "posts", - "valid": true - } - }] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.5/datatypes.network.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.5/datatypes.network.json deleted file mode 100644 index 9d2f57476..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.5/datatypes.network.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "snapshot": { - "objects": { - "liquibase.structure.core.Table": [ - { - "table": { - "name": "datatypes.network_test_table" - } - } - ], - "liquibase.structure.core.Column": [ - { - "column": { - "name": "cidr", - "type": { - "typeName": "cidr" - } - } - }, - { - "column": { - "name": "inet", - "type": { - "typeName": "inet" - } - } - }, - { - "column": { - "name": "macaddr", - "type": { - "typeName": "macaddr" - } - } - } - ] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.5/datatypes.serial.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.5/datatypes.serial.json deleted file mode 100644 index 8bd1257fa..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.5/datatypes.serial.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "snapshot": { - "objects": { - "liquibase.structure.core.Table": [ - { - "table": { - "name": "serial_test_table" - } - } - ], - "liquibase.structure.core.Column": [ - { - "column": { - "name": "serial", - "type": { - "typeName": "serial" - } - } - }, - { - "column": { - "name": "bigserial", - "type": { - "typeName": "bigserial" - } - } - } - ] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.5/disableTrigger.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.5/disableTrigger.json deleted file mode 100644 index 21bde385a..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.5/disableTrigger.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "snapshot": { - "objects": { - "com.datical.liquibase.ext.storedlogic.trigger.Trigger": [ - { - "trigger": { - "body": "CREATE TRIGGER test_trigger BEFORE INSERT ON public.posts FOR EACH ROW EXECUTE PROCEDURE test_function()", - "disabled": true, - "name": "test_trigger", - "tableName": "posts", - "valid": true - } - }] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.5/enableTrigger.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.5/enableTrigger.json deleted file mode 100644 index 25fe9996e..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.5/enableTrigger.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "snapshot": { - "objects": { - "com.datical.liquibase.ext.storedlogic.trigger.Trigger": [ - { - "trigger": { - "body": "CREATE TRIGGER test_trigger BEFORE INSERT ON public.posts FOR EACH ROW EXECUTE PROCEDURE test_function()", - "disabled": false, - "name": "test_trigger", - "tableName": "posts", - "valid": true - } - }] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.5/renameSequence.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.5/renameSequence.json deleted file mode 100644 index d1b4d1315..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.5/renameSequence.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "snapshot": { - "objects": { - "liquibase.structure.core.Sequence": [ - { - "sequence": { - "name": "test_sequence_rename_test" - } - } - ] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.5/renameTrigger.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.5/renameTrigger.json deleted file mode 100644 index 2dd7510c0..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.5/renameTrigger.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "snapshot": { - "objects": { - "com.datical.liquibase.ext.storedlogic.trigger.Trigger": [ - { - "trigger": { - "body": "CREATE TRIGGER test_trigger_renamed BEFORE INSERT ON public.posts FOR EACH ROW EXECUTE PROCEDURE test_function()", - "disabled": false, - "name": "test_trigger_renamed", - "tableName": "posts", - "valid": true - } - }] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.6/alterSequence.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.6/alterSequence.json deleted file mode 100644 index f1c16d223..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.6/alterSequence.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "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/postgresql/9.6/createSequence.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.6/createSequence.json deleted file mode 100644 index f1c16d223..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.6/createSequence.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "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/postgresql/9.6/createTrigger.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.6/createTrigger.json deleted file mode 100644 index 25fe9996e..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.6/createTrigger.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "snapshot": { - "objects": { - "com.datical.liquibase.ext.storedlogic.trigger.Trigger": [ - { - "trigger": { - "body": "CREATE TRIGGER test_trigger BEFORE INSERT ON public.posts FOR EACH ROW EXECUTE PROCEDURE test_function()", - "disabled": false, - "name": "test_trigger", - "tableName": "posts", - "valid": true - } - }] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.6/datatypes.network.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.6/datatypes.network.json deleted file mode 100644 index 9d2f57476..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.6/datatypes.network.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "snapshot": { - "objects": { - "liquibase.structure.core.Table": [ - { - "table": { - "name": "datatypes.network_test_table" - } - } - ], - "liquibase.structure.core.Column": [ - { - "column": { - "name": "cidr", - "type": { - "typeName": "cidr" - } - } - }, - { - "column": { - "name": "inet", - "type": { - "typeName": "inet" - } - } - }, - { - "column": { - "name": "macaddr", - "type": { - "typeName": "macaddr" - } - } - } - ] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.6/datatypes.serial.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.6/datatypes.serial.json deleted file mode 100644 index 8bd1257fa..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.6/datatypes.serial.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "snapshot": { - "objects": { - "liquibase.structure.core.Table": [ - { - "table": { - "name": "serial_test_table" - } - } - ], - "liquibase.structure.core.Column": [ - { - "column": { - "name": "serial", - "type": { - "typeName": "serial" - } - } - }, - { - "column": { - "name": "bigserial", - "type": { - "typeName": "bigserial" - } - } - } - ] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.6/disableTrigger.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.6/disableTrigger.json deleted file mode 100644 index 21bde385a..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.6/disableTrigger.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "snapshot": { - "objects": { - "com.datical.liquibase.ext.storedlogic.trigger.Trigger": [ - { - "trigger": { - "body": "CREATE TRIGGER test_trigger BEFORE INSERT ON public.posts FOR EACH ROW EXECUTE PROCEDURE test_function()", - "disabled": true, - "name": "test_trigger", - "tableName": "posts", - "valid": true - } - }] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.6/enableTrigger.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.6/enableTrigger.json deleted file mode 100644 index 25fe9996e..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.6/enableTrigger.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "snapshot": { - "objects": { - "com.datical.liquibase.ext.storedlogic.trigger.Trigger": [ - { - "trigger": { - "body": "CREATE TRIGGER test_trigger BEFORE INSERT ON public.posts FOR EACH ROW EXECUTE PROCEDURE test_function()", - "disabled": false, - "name": "test_trigger", - "tableName": "posts", - "valid": true - } - }] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.6/renameSequence.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.6/renameSequence.json deleted file mode 100644 index d1b4d1315..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.6/renameSequence.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "snapshot": { - "objects": { - "liquibase.structure.core.Sequence": [ - { - "sequence": { - "name": "test_sequence_rename_test" - } - } - ] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.6/renameTrigger.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.6/renameTrigger.json deleted file mode 100644 index 2dd7510c0..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9.6/renameTrigger.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "snapshot": { - "objects": { - "com.datical.liquibase.ext.storedlogic.trigger.Trigger": [ - { - "trigger": { - "body": "CREATE TRIGGER test_trigger_renamed BEFORE INSERT ON public.posts FOR EACH ROW EXECUTE PROCEDURE test_function()", - "disabled": false, - "name": "test_trigger_renamed", - "tableName": "posts", - "valid": true - } - }] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9/alterSequence.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9/alterSequence.json deleted file mode 100644 index f1c16d223..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9/alterSequence.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "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/postgresql/9/createSequence.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9/createSequence.json deleted file mode 100644 index f1c16d223..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9/createSequence.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "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/postgresql/9/createTrigger.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9/createTrigger.json deleted file mode 100644 index 25fe9996e..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9/createTrigger.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "snapshot": { - "objects": { - "com.datical.liquibase.ext.storedlogic.trigger.Trigger": [ - { - "trigger": { - "body": "CREATE TRIGGER test_trigger BEFORE INSERT ON public.posts FOR EACH ROW EXECUTE PROCEDURE test_function()", - "disabled": false, - "name": "test_trigger", - "tableName": "posts", - "valid": true - } - }] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9/datatypes.network.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9/datatypes.network.json deleted file mode 100644 index 9d2f57476..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9/datatypes.network.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "snapshot": { - "objects": { - "liquibase.structure.core.Table": [ - { - "table": { - "name": "datatypes.network_test_table" - } - } - ], - "liquibase.structure.core.Column": [ - { - "column": { - "name": "cidr", - "type": { - "typeName": "cidr" - } - } - }, - { - "column": { - "name": "inet", - "type": { - "typeName": "inet" - } - } - }, - { - "column": { - "name": "macaddr", - "type": { - "typeName": "macaddr" - } - } - } - ] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9/datatypes.serial.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9/datatypes.serial.json deleted file mode 100644 index 8bd1257fa..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9/datatypes.serial.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "snapshot": { - "objects": { - "liquibase.structure.core.Table": [ - { - "table": { - "name": "serial_test_table" - } - } - ], - "liquibase.structure.core.Column": [ - { - "column": { - "name": "serial", - "type": { - "typeName": "serial" - } - } - }, - { - "column": { - "name": "bigserial", - "type": { - "typeName": "bigserial" - } - } - } - ] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9/disableTrigger.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9/disableTrigger.json deleted file mode 100644 index 21bde385a..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9/disableTrigger.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "snapshot": { - "objects": { - "com.datical.liquibase.ext.storedlogic.trigger.Trigger": [ - { - "trigger": { - "body": "CREATE TRIGGER test_trigger BEFORE INSERT ON public.posts FOR EACH ROW EXECUTE PROCEDURE test_function()", - "disabled": true, - "name": "test_trigger", - "tableName": "posts", - "valid": true - } - }] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9/enableTrigger.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9/enableTrigger.json deleted file mode 100644 index 25fe9996e..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9/enableTrigger.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "snapshot": { - "objects": { - "com.datical.liquibase.ext.storedlogic.trigger.Trigger": [ - { - "trigger": { - "body": "CREATE TRIGGER test_trigger BEFORE INSERT ON public.posts FOR EACH ROW EXECUTE PROCEDURE test_function()", - "disabled": false, - "name": "test_trigger", - "tableName": "posts", - "valid": true - } - }] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9/renameSequence.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9/renameSequence.json deleted file mode 100644 index d1b4d1315..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9/renameSequence.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "snapshot": { - "objects": { - "liquibase.structure.core.Sequence": [ - { - "sequence": { - "name": "test_sequence_rename_test" - } - } - ] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9/renameTrigger.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9/renameTrigger.json deleted file mode 100644 index 2dd7510c0..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/9/renameTrigger.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "snapshot": { - "objects": { - "com.datical.liquibase.ext.storedlogic.trigger.Trigger": [ - { - "trigger": { - "body": "CREATE TRIGGER test_trigger_renamed BEFORE INSERT ON public.posts FOR EACH ROW EXECUTE PROCEDURE test_function()", - "disabled": false, - "name": "test_trigger_renamed", - "tableName": "posts", - "valid": true - } - }] - } - } -} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/createView.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/createView.json index f018293b2..4a528883c 100644 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/createView.json +++ b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/createView.json @@ -4,7 +4,7 @@ "liquibase.structure.core.View": [ { "view": { - "definition": " SELECT authors.id,\n authors.first_name,\n authors.last_name,\n authors.email\n FROM authors;", + "definition": "SELECT authors.id,\n authors.first_name,\n authors.last_name,\n authors.email\n FROM authors;", "name": "test_view" } }] diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/10/createProcedure.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/10/createProcedure.sql deleted file mode 100644 index bb76777b1..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/10/createProcedure.sql +++ /dev/null @@ -1,2 +0,0 @@ -INVALID TEST --- Postgres10 doesn't support stored procedures processing \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/10/createProcedureFromFile.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/10/createProcedureFromFile.sql deleted file mode 100644 index bb76777b1..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/10/createProcedureFromFile.sql +++ /dev/null @@ -1,2 +0,0 @@ -INVALID TEST --- Postgres10 doesn't support stored procedures processing \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/10/dropProcedure.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/10/dropProcedure.sql deleted file mode 100644 index 743c9db06..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/10/dropProcedure.sql +++ /dev/null @@ -1,2 +0,0 @@ -INVALID TEST --- Postgres10 doesn't support stored procedures processing diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/alterSequence.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/alterSequence.sql deleted file mode 100644 index b180c0524..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/alterSequence.sql +++ /dev/null @@ -1,2 +0,0 @@ -CREATE SEQUENCE IF NOT EXISTS public.test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 -ALTER SEQUENCE public.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/postgresql/9.5/alterSequenceCycleProperty.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/alterSequenceCycleProperty.sql deleted file mode 100644 index 47bbf2b54..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/alterSequenceCycleProperty.sql +++ /dev/null @@ -1 +0,0 @@ -INVALID TEST \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/createProcedure.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/createProcedure.sql deleted file mode 100644 index 280b545ff..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/createProcedure.sql +++ /dev/null @@ -1,2 +0,0 @@ -INVALID TEST --- Postgres9.5 doesn't support stored procedures processing \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/createProcedureFromFile.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/createProcedureFromFile.sql deleted file mode 100644 index 280b545ff..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/createProcedureFromFile.sql +++ /dev/null @@ -1,2 +0,0 @@ -INVALID TEST --- Postgres9.5 doesn't support stored procedures processing \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/createSequence.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/createSequence.sql deleted file mode 100644 index 16b562869..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/createSequence.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE SEQUENCE IF NOT EXISTS public.test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/createTableWithNumericColumn.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/createTableWithNumericColumn.sql deleted file mode 100644 index 4928ce6ab..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/createTableWithNumericColumn.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE public.contacts (id SERIAL NOT NULL, name VARCHAR(100), phones TEXT[], po_box NUMERIC[], CONSTRAINT contacts_pkey PRIMARY KEY (id)) \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/datatypes.network.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/datatypes.network.sql deleted file mode 100644 index fa04e0125..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/datatypes.network.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE public."datatypes.network_test_table" (cidr CIDR, inet INET, macaddr MACADDR) \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/datatypes.serial.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/datatypes.serial.sql deleted file mode 100644 index 9c69e7274..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/datatypes.serial.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE public.serial_test_table (serial SERIAL, bigserial BIGSERIAL) \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/dropCamelCasePrimaryKey.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/dropCamelCasePrimaryKey.sql deleted file mode 100644 index 89a83b5d4..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/dropCamelCasePrimaryKey.sql +++ /dev/null @@ -1,9 +0,0 @@ -CREATE TABLE public."camelCase" (id SERIAL NOT NULL, CONSTRAINT "camelCase_pkey" PRIMARY KEY (id)) -DO $$ DECLARE constraint_name varchar -BEGIN -SELECT tc.CONSTRAINT_NAME into strict constraint_name -FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS tc -WHERE CONSTRAINT_TYPE = 'PRIMARY KEY' -AND TABLE_NAME = 'camelCase' AND TABLE_SCHEMA = 'public' -EXECUTE 'alter table public."camelCase" drop constraint "' || constraint_name || '"' -END $$ \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/dropFunction.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/dropFunction.sql deleted file mode 100644 index 2bb4359f9..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/dropFunction.sql +++ /dev/null @@ -1,10 +0,0 @@ -CREATE OR REPLACE FUNCTION public.test_function() -RETURNS trigger -AS $$ -BEGIN -RAISE NOTICE 'Test function created' -RETURN NEW -END -$$ -LANGUAGE plpgsql -DROP FUNCTION public.test_function() \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/dropProcedure.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/dropProcedure.sql deleted file mode 100644 index a1e268012..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/dropProcedure.sql +++ /dev/null @@ -1,2 +0,0 @@ -INVALID TEST --- Postgres9.5 doesn't support stored procedures processing diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/dropSequence.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/dropSequence.sql deleted file mode 100644 index 6989e361e..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/dropSequence.sql +++ /dev/null @@ -1,2 +0,0 @@ -CREATE SEQUENCE IF NOT EXISTS public.test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 -DROP SEQUENCE public.test_sequence CASCADE diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/renameSequence.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/renameSequence.sql deleted file mode 100644 index 715da5251..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.5/renameSequence.sql +++ /dev/null @@ -1,2 +0,0 @@ -CREATE SEQUENCE IF NOT EXISTS public.test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 -ALTER SEQUENCE public.test_sequence RENAME TO test_sequence_rename_test diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.6/alterSequence.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.6/alterSequence.sql deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.6/createProcedure.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.6/createProcedure.sql deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.6/createProcedureFromFile.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.6/createProcedureFromFile.sql deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.6/createSequence.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.6/createSequence.sql deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.6/datatypes.network.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.6/datatypes.network.sql deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.6/datatypes.serial.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.6/datatypes.serial.sql deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.6/dropFunction.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.6/dropFunction.sql deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.6/dropProcedure.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.6/dropProcedure.sql deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.6/dropSequence.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.6/dropSequence.sql deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.6/renameSequence.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9.6/renameSequence.sql deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/alterSequence.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/alterSequence.sql deleted file mode 100644 index b180c0524..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/alterSequence.sql +++ /dev/null @@ -1,2 +0,0 @@ -CREATE SEQUENCE IF NOT EXISTS public.test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 -ALTER SEQUENCE public.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/postgresql/9/alterSequenceCycleProperty.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/alterSequenceCycleProperty.sql deleted file mode 100644 index 47bbf2b54..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/alterSequenceCycleProperty.sql +++ /dev/null @@ -1 +0,0 @@ -INVALID TEST \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/createProcedure.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/createProcedure.sql deleted file mode 100644 index c5fec55a4..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/createProcedure.sql +++ /dev/null @@ -1,2 +0,0 @@ -INVALID TEST --- Postgres9 doesn't support stored procedures processing \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/createProcedureFromFile.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/createProcedureFromFile.sql deleted file mode 100644 index c5fec55a4..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/createProcedureFromFile.sql +++ /dev/null @@ -1,2 +0,0 @@ -INVALID TEST --- Postgres9 doesn't support stored procedures processing \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/createSequence.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/createSequence.sql deleted file mode 100644 index 16b562869..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/createSequence.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE SEQUENCE IF NOT EXISTS public.test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/createTableWithNumericColumn.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/createTableWithNumericColumn.sql deleted file mode 100644 index 4928ce6ab..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/createTableWithNumericColumn.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE public.contacts (id SERIAL NOT NULL, name VARCHAR(100), phones TEXT[], po_box NUMERIC[], CONSTRAINT contacts_pkey PRIMARY KEY (id)) \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/datatypes.network.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/datatypes.network.sql deleted file mode 100644 index fa04e0125..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/datatypes.network.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE public."datatypes.network_test_table" (cidr CIDR, inet INET, macaddr MACADDR) \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/datatypes.serial.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/datatypes.serial.sql deleted file mode 100644 index 9c69e7274..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/datatypes.serial.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE public.serial_test_table (serial SERIAL, bigserial BIGSERIAL) \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/dropCamelCasePrimaryKey.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/dropCamelCasePrimaryKey.sql deleted file mode 100644 index 89a83b5d4..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/dropCamelCasePrimaryKey.sql +++ /dev/null @@ -1,9 +0,0 @@ -CREATE TABLE public."camelCase" (id SERIAL NOT NULL, CONSTRAINT "camelCase_pkey" PRIMARY KEY (id)) -DO $$ DECLARE constraint_name varchar -BEGIN -SELECT tc.CONSTRAINT_NAME into strict constraint_name -FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS tc -WHERE CONSTRAINT_TYPE = 'PRIMARY KEY' -AND TABLE_NAME = 'camelCase' AND TABLE_SCHEMA = 'public' -EXECUTE 'alter table public."camelCase" drop constraint "' || constraint_name || '"' -END $$ \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/dropFunction.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/dropFunction.sql deleted file mode 100644 index 2bb4359f9..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/dropFunction.sql +++ /dev/null @@ -1,10 +0,0 @@ -CREATE OR REPLACE FUNCTION public.test_function() -RETURNS trigger -AS $$ -BEGIN -RAISE NOTICE 'Test function created' -RETURN NEW -END -$$ -LANGUAGE plpgsql -DROP FUNCTION public.test_function() \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/dropProcedure.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/dropProcedure.sql deleted file mode 100644 index 732a7ea2c..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/dropProcedure.sql +++ /dev/null @@ -1,2 +0,0 @@ -INVALID TEST --- Postgres9 doesn't support stored procedures processing diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/dropSequence.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/dropSequence.sql deleted file mode 100644 index 6989e361e..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/dropSequence.sql +++ /dev/null @@ -1,2 +0,0 @@ -CREATE SEQUENCE IF NOT EXISTS public.test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 -DROP SEQUENCE public.test_sequence CASCADE diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/renameSequence.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/renameSequence.sql deleted file mode 100644 index 715da5251..000000000 --- a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/renameSequence.sql +++ /dev/null @@ -1,2 +0,0 @@ -CREATE SEQUENCE IF NOT EXISTS public.test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 -ALTER SEQUENCE public.test_sequence RENAME TO test_sequence_rename_test diff --git a/src/main/resources/liquibase/harness/change/expectedSql/postgresql/sqlFile.sql b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/sqlFile.sql new file mode 100644 index 000000000..e1bf5d7e5 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSql/postgresql/sqlFile.sql @@ -0,0 +1,4 @@ +CREATE TABLE public.sqltest (id INTEGER) +insert into sqltest (id) values (1) +insert into sqltest (id) values (2) +insert into sqltest (id) values (3) \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/diff/changelogs/postgresql12_to_postgresql11.xml b/src/main/resources/liquibase/harness/diff/changelogs/postgresql12_to_postgresql11.xml deleted file mode 100644 index a34d1b732..000000000 --- a/src/main/resources/liquibase/harness/diff/changelogs/postgresql12_to_postgresql11.xml +++ /dev/null @@ -1,112 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - select id, first_name, last_name, email from authors - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/diff/changelogs/postgresql14_to_postgresql10.xml b/src/main/resources/liquibase/harness/diff/changelogs/postgresql14_to_postgresql10.xml deleted file mode 100644 index a34d1b732..000000000 --- a/src/main/resources/liquibase/harness/diff/changelogs/postgresql14_to_postgresql10.xml +++ /dev/null @@ -1,112 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - select id, first_name, last_name, email from authors - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/diff/diffDatabases.yml b/src/main/resources/liquibase/harness/diff/diffDatabases.yml index 0797b4a9a..91df2a152 100644 --- a/src/main/resources/liquibase/harness/diff/diffDatabases.yml +++ b/src/main/resources/liquibase/harness/diff/diffDatabases.yml @@ -30,16 +30,6 @@ references: referenceDatabaseName: postgresql referenceDatabaseVersion: 14 - - targetDatabaseName: postgresql - targetDatabaseVersion: 11 - referenceDatabaseName: postgresql - referenceDatabaseVersion: 12 - - - targetDatabaseName: postgresql - targetDatabaseVersion: 10 - referenceDatabaseName: postgresql - referenceDatabaseVersion: 14 - - targetDatabaseName: mariadb targetDatabaseVersion: 10.6 referenceDatabaseName: mariadb diff --git a/src/main/resources/liquibase/harness/diff/expectedDiff/postgresql12_to_postgresql11.txt b/src/main/resources/liquibase/harness/diff/expectedDiff/postgresql12_to_postgresql11.txt deleted file mode 100644 index d52045da9..000000000 --- a/src/main/resources/liquibase/harness/diff/expectedDiff/postgresql12_to_postgresql11.txt +++ /dev/null @@ -1,88 +0,0 @@ -Reference Database: lbuser @ jdbc:postgresql://localhost:5436/lbcat (Default Schema: public) -Comparison Database: lbuser @ jdbc:postgresql://localhost:5435/lbcat (Default Schema: public) -Compared Schemas: public -Product Name: EQUAL -Product Version: - Reference: '12.15(Debian12.15-1.pgdg110+1)' - Target: '11.16 (Debian 11.16-1.pgdg90+1)' -Missing Catalog(s): NONE -Unexpected Catalog(s): NONE -Changed Catalog(s): NONE -Missing Check Constraint(s): NONE -Unexpected Check Constraint(s): NONE -Changed Check Constraint(s): NONE -Missing Column(s): NONE -Unexpected Column(s): - public.test_table_for_column.dateColumn - public.test_view.email - public.test_view.first_name - public.test_table_base.id - public.test_table_for_column.id - public.test_table_for_index.id - public.test_table_for_uc.id - public.test_table_reference.id - public.test_view.id - public.test_table_for_column.intColumn - public.test_view.last_name - public.test_table_reference.test_column - public.test_table_for_column.varcharColumn -Changed Column(s): NONE -Missing Database Package(s): NONE -Unexpected Database Package(s): NONE -Changed Database Package(s): NONE -Missing Database Package Body(s): NONE -Unexpected Database Package Body(s): NONE -Changed Database Package Body(s): NONE -Missing Foreign Key(s): NONE -Unexpected Foreign Key(s): - test_fk(test_table_base[id] -> test_table_reference[test_column]) -Changed Foreign Key(s): NONE -Missing Function(s): NONE -Unexpected Function(s): NONE -Changed Function(s): NONE -Missing Index(s): NONE -Unexpected Index(s): - idx_first_name ON public.test_table_for_index(id) - test_table_base_pkey UNIQUE ON public.test_table_base(id) - test_table_reference_pkey UNIQUE ON public.test_table_reference(id) - test_table_reference_test_column_key UNIQUE ON public.test_table_reference(test_column) - test_unique_constraint UNIQUE ON public.test_table_for_uc(id) -Changed Index(s): NONE -Missing Primary Key(s): NONE -Unexpected Primary Key(s): - test_table_base_pkey on public.test_table_base(id) - test_table_reference_pkey on public.test_table_reference(id) -Changed Primary Key(s): NONE -Missing Schema(s): NONE -Unexpected Schema(s): NONE -Changed Schema(s): NONE -Missing Sequence(s): NONE -Unexpected Sequence(s): - test_sequence -Changed Sequence(s): NONE -Missing Stored Procedure(s): NONE -Unexpected Stored Procedure(s): NONE -Changed Stored Procedure(s): NONE -Missing Synonym(s): NONE -Unexpected Synonym(s): NONE -Changed Synonym(s): NONE -Missing Table(s): NONE -Unexpected Table(s): - test_table_base - test_table_for_column - test_table_for_index - test_table_for_uc - test_table_reference -Changed Table(s): NONE -Missing Trigger(s): NONE -Unexpected Trigger(s): NONE -Changed Trigger(s): NONE -Missing Unique Constraint(s): NONE -Unexpected Unique Constraint(s): - test_table_reference_test_column_key on test_table_reference(test_column) - test_unique_constraint on test_table_for_uc(id) -Changed Unique Constraint(s): NONE -Missing View(s): NONE -Unexpected View(s): - test_view -Changed View(s): NONE \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/diff/expectedDiff/postgresql14_to_postgresql10.txt b/src/main/resources/liquibase/harness/diff/expectedDiff/postgresql14_to_postgresql10.txt deleted file mode 100644 index 4c09e9c76..000000000 --- a/src/main/resources/liquibase/harness/diff/expectedDiff/postgresql14_to_postgresql10.txt +++ /dev/null @@ -1,88 +0,0 @@ -Reference Database: lbuser @ jdbc:postgresql://localhost:5438/lbcat (Default Schema: public) -Comparison Database: lbuser @ jdbc:postgresql://localhost:5434/lbcat (Default Schema: public) -Compared Schemas: public -Product Name: EQUAL -Product Version: - Reference: '14.8 (Debian 14.8-1.pgdg110+1)' - Target: '10.21(Debian10.21-1.pgdg90+1)' -Missing Catalog(s): NONE -Unexpected Catalog(s): NONE -Changed Catalog(s): NONE -Missing Check Constraint(s): NONE -Unexpected Check Constraint(s): NONE -Changed Check Constraint(s): NONE -Missing Column(s): NONE -Unexpected Column(s): - public.test_table_for_column.dateColumn - public.test_view.email - public.test_view.first_name - public.test_table_base.id - public.test_table_for_column.id - public.test_table_for_index.id - public.test_table_for_uc.id - public.test_table_reference.id - public.test_view.id - public.test_table_for_column.intColumn - public.test_view.last_name - public.test_table_reference.test_column - public.test_table_for_column.varcharColumn -Changed Column(s): NONE -Missing Database Package(s): NONE -Unexpected Database Package(s): NONE -Changed Database Package(s): NONE -Missing Database Package Body(s): NONE -Unexpected Database Package Body(s): NONE -Changed Database Package Body(s): NONE -Missing Foreign Key(s): NONE -Unexpected Foreign Key(s): - test_fk(test_table_base[id] -> test_table_reference[test_column]) -Changed Foreign Key(s): NONE -Missing Function(s): NONE -Unexpected Function(s): NONE -Changed Function(s): NONE -Missing Index(s): NONE -Unexpected Index(s): - idx_first_name ON public.test_table_for_index(id) - test_table_base_pkey UNIQUE ON public.test_table_base(id) - test_table_reference_pkey UNIQUE ON public.test_table_reference(id) - test_table_reference_test_column_key UNIQUE ON public.test_table_reference(test_column) - test_unique_constraint UNIQUE ON public.test_table_for_uc(id) -Changed Index(s): NONE -Missing Primary Key(s): NONE -Unexpected Primary Key(s): - test_table_base_pkey on public.test_table_base(id) - test_table_reference_pkey on public.test_table_reference(id) -Changed Primary Key(s): NONE -Missing Schema(s): NONE -Unexpected Schema(s): NONE -Changed Schema(s): NONE -Missing Sequence(s): NONE -Unexpected Sequence(s): - test_sequence -Changed Sequence(s): NONE -Missing Stored Procedure(s): NONE -Unexpected Stored Procedure(s): NONE -Changed Stored Procedure(s): NONE -Missing Synonym(s): NONE -Unexpected Synonym(s): NONE -Changed Synonym(s): NONE -Missing Table(s): NONE -Unexpected Table(s): - test_table_base - test_table_for_column - test_table_for_index - test_table_for_uc - test_table_reference -Changed Table(s): NONE -Missing Trigger(s): NONE -Unexpected Trigger(s): NONE -Changed Trigger(s): NONE -Missing Unique Constraint(s): NONE -Unexpected Unique Constraint(s): - test_table_reference_test_column_key on test_table_reference(test_column) - test_unique_constraint on test_table_for_uc(id) -Changed Unique Constraint(s): NONE -Missing View(s): NONE -Unexpected View(s): - test_view -Changed View(s): NONE \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/10/createProcedure.sql b/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/10/createProcedure.sql deleted file mode 100644 index bb76777b1..000000000 --- a/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/10/createProcedure.sql +++ /dev/null @@ -1,2 +0,0 @@ -INVALID TEST --- Postgres10 doesn't support stored procedures processing \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/10/createTrigger.sql b/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/10/createTrigger.sql deleted file mode 100644 index 58bcb0cf0..000000000 --- a/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/10/createTrigger.sql +++ /dev/null @@ -1,11 +0,0 @@ -CREATE OR REPLACE FUNCTION "public".test_function() - RETURNS trigger - LANGUAGE plpgsql -AS $function$ - BEGIN - RAISE NOTICE 'Test trigger function created'; - RETURN NEW; - END; - $function$; - -CREATE TRIGGER test_trigger BEFORE INSERT ON "public".posts FOR EACH ROW EXECUTE PROCEDURE test_function(); \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/11/createTrigger.sql b/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/11/createTrigger.sql deleted file mode 100644 index 58bcb0cf0..000000000 --- a/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/11/createTrigger.sql +++ /dev/null @@ -1,11 +0,0 @@ -CREATE OR REPLACE FUNCTION "public".test_function() - RETURNS trigger - LANGUAGE plpgsql -AS $function$ - BEGIN - RAISE NOTICE 'Test trigger function created'; - RETURN NEW; - END; - $function$; - -CREATE TRIGGER test_trigger BEFORE INSERT ON "public".posts FOR EACH ROW EXECUTE PROCEDURE test_function(); \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/9.5/createProcedure.sql b/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/9.5/createProcedure.sql deleted file mode 100644 index bb76777b1..000000000 --- a/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/9.5/createProcedure.sql +++ /dev/null @@ -1,2 +0,0 @@ -INVALID TEST --- Postgres10 doesn't support stored procedures processing \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/9.5/createSequence.sql b/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/9.5/createSequence.sql deleted file mode 100644 index f84608af6..000000000 --- a/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/9.5/createSequence.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE SEQUENCE IF NOT EXISTS "test_sequence"; diff --git a/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/9.5/createTrigger.sql b/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/9.5/createTrigger.sql deleted file mode 100644 index 58bcb0cf0..000000000 --- a/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/9.5/createTrigger.sql +++ /dev/null @@ -1,11 +0,0 @@ -CREATE OR REPLACE FUNCTION "public".test_function() - RETURNS trigger - LANGUAGE plpgsql -AS $function$ - BEGIN - RAISE NOTICE 'Test trigger function created'; - RETURN NEW; - END; - $function$; - -CREATE TRIGGER test_trigger BEFORE INSERT ON "public".posts FOR EACH ROW EXECUTE PROCEDURE test_function(); \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/9/createProcedure.sql b/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/9/createProcedure.sql deleted file mode 100644 index bb76777b1..000000000 --- a/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/9/createProcedure.sql +++ /dev/null @@ -1,2 +0,0 @@ -INVALID TEST --- Postgres10 doesn't support stored procedures processing \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/9/createSequence.sql b/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/9/createSequence.sql deleted file mode 100644 index f84608af6..000000000 --- a/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/9/createSequence.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE SEQUENCE IF NOT EXISTS "test_sequence"; diff --git a/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/9/createTrigger.sql b/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/9/createTrigger.sql deleted file mode 100644 index 58bcb0cf0..000000000 --- a/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/9/createTrigger.sql +++ /dev/null @@ -1,11 +0,0 @@ -CREATE OR REPLACE FUNCTION "public".test_function() - RETURNS trigger - LANGUAGE plpgsql -AS $function$ - BEGIN - RAISE NOTICE 'Test trigger function created'; - RETURN NEW; - END; - $function$; - -CREATE TRIGGER test_trigger BEFORE INSERT ON "public".posts FOR EACH ROW EXECUTE PROCEDURE test_function(); \ No newline at end of file diff --git a/src/test/resources/automation-runner.sh b/src/test/resources/automation-runner.sh index 8a33f30ba..289668f82 100755 --- a/src/test/resources/automation-runner.sh +++ b/src/test/resources/automation-runner.sh @@ -26,18 +26,6 @@ case $db in "percona-xtradb-cluster-8.0" ) test_command mvn -ntp -Dtest=$tc -DdbName=percona-xtradb-cluster -DdbVersion=8.0 test ;; - "postgres-9.5" ) - test_command mvn -ntp -Dtest=$tc -DdbName=postgresql -DdbVersion=9.5 test - ;; - "postgres-9" ) - test_command mvn -ntp -Dtest=$tc -DdbName=postgresql -DdbVersion=9 test - ;; - "postgres-10" ) - test_command mvn -ntp -Dtest=$tc -DdbName=postgresql -DdbVersion=10 test - ;; - "postgres-11" ) - test_command mvn -ntp -Dtest=$tc -DdbName=postgresql -DdbVersion=11 test - ;; "postgres-12" ) test_command mvn -ntp -Dtest=$tc -DdbName=postgresql -DdbVersion=12 test ;; diff --git a/src/test/resources/docker/create-infra.sh b/src/test/resources/docker/create-infra.sh index 5aee9c07f..3f92b6cc3 100755 --- a/src/test/resources/docker/create-infra.sh +++ b/src/test/resources/docker/create-infra.sh @@ -14,13 +14,13 @@ case $db in # edb setup requires login to private registry "edb-postgres-9.5"|"edb-postgres-9.6"|"edb-postgres-10"|"edb-postgres-11"|"edb-postgres-12"|"edb-postgres-13"|"edb-postgres-14"|"edb-edb-9.5"|"edb-edb-9.6"|"edb-edb-10"|"edb-edb-11"|"edb-edb-12"|"edb-edb-13"|"edb-edb-14") - docker login $ARTIFACTORY_URL -u $ARTIFACTORY_USER -p $ARTIFACTORY_TOKEN + docker login $REPO_URL -u $REPO_USER -p $REPO_PASSWORD docker compose -f docker-compose.edb.yml up -d $db exit 0 ;; "diff") - docker compose up -d postgres-16 postgres-15 postgres-14 postgres-13 postgres-11 postgres-12 postgres-10 mysql-5.7 mysql-8 mariadb-10.2 mariadb-10.3 mariadb-10.4 mariadb-10.5 mariadb-10.6 mariadb-10.7 mssql-2017 mssql-2019 mssql-2022 + docker compose up -d postgres-16 postgres-15 postgres-14 postgres-13 postgres-12 mysql-5.7 mysql-8 mariadb-10.2 mariadb-10.3 mariadb-10.4 mariadb-10.5 mariadb-10.6 mariadb-10.7 mssql-2017 mssql-2019 mssql-2022 sleep 40 docker ps -a ;; diff --git a/src/test/resources/docker/docker-compose.edb.yml b/src/test/resources/docker/docker-compose.edb.yml index 82ac9a14f..150a0d510 100644 --- a/src/test/resources/docker/docker-compose.edb.yml +++ b/src/test/resources/docker/docker-compose.edb.yml @@ -5,49 +5,49 @@ services: # Liquibase hosts private EDB images built for testing purposes in a private Artifactory repo which is login protected. # If you do not login privileges to this private repo then you will encounter authentication errors if you run `docker compose up` on this docker compose file. edb-postgres-9.5: - image: docker-dev.artifactory.datical.net/datical/datical-enterprisedb-ppas95:latest + image: docker.liquibase.net/datical-enterprisedb-ppas95:latest ports: - "5501:5444" restart: always # no environment or volumes as those were created at image creation edb-postgres-9.6: - image: docker-dev.artifactory.datical.net/datical/datical-enterprisedb-edbas96:latest + image: docker.liquibase.net/datical-enterprisedb-edbas96:latest ports: - "5502:5444" restart: always # no environment or volumes as those were created at image creation edb-postgres-10: - image: docker-dev.artifactory.datical.net/datical/datical-enterprisedb-edbas10:latest + image: docker.liquibase.net/datical-enterprisedb-edbas10:latest ports: - "5503:5444" restart: always # no environment or volumes as those were created at image creation edb-postgres-11: - image: docker-dev.artifactory.datical.net/datical/datical-enterprisedb-edbas11:latest + image: docker.liquibase.net/datical-enterprisedb-edbas11:latest ports: - "5504:5444" restart: always # no environment or volumes as those were created at image creation edb-postgres-12: - image: docker-dev.artifactory.datical.net/datical/datical-enterprisedb-edbas12:latest + image: docker.liquibase.net/datical-enterprisedb-edbas12:latest ports: - "5505:5444" restart: always # no environment or volumes as those were created at image creation edb-postgres-13: - image: docker-dev.artifactory.datical.net/datical/datical-enterprisedb-edbas13:latest + image: docker.liquibase.net/datical-enterprisedb-edbas13:latest ports: - "5506:5444" restart: always # no environment or volumes as those were created at image creation edb-postgres-14: - image: docker-dev.artifactory.datical.net/datical/datical-enterprisedb-edbas14:latest + image: docker.liquibase.net/datical-enterprisedb-edbas14:latest ports: - "5507:5444" restart: always @@ -57,49 +57,49 @@ services: # Without it tests will run in parallel and interfere with each other edb-edb-9.5: - image: docker-dev.artifactory.datical.net/datical/datical-enterprisedb-ppas95:latest + image: docker.liquibase.net/datical-enterprisedb-ppas95:latest ports: - "5508:5444" restart: always # no environment or volumes as those were created at image creation edb-edb-9.6: - image: docker-dev.artifactory.datical.net/datical/datical-enterprisedb-edbas96:latest + image: docker.liquibase.net/datical-enterprisedb-edbas96:latest ports: - "5509:5444" restart: always # no environment or volumes as those were created at image creation edb-edb-10: - image: docker-dev.artifactory.datical.net/datical/datical-enterprisedb-edbas10:latest + image: docker.liquibase.net/datical-enterprisedb-edbas10:latest ports: - "5510:5444" restart: always # no environment or volumes as those were created at image creation edb-edb-11: - image: docker-dev.artifactory.datical.net/datical/datical-enterprisedb-edbas11:latest + image: docker.liquibase.net/datical-enterprisedb-edbas11:latest ports: - "5511:5444" restart: always # no environment or volumes as those were created at image creation edb-edb-12: - image: docker-dev.artifactory.datical.net/datical/datical-enterprisedb-edbas12:latest + image: docker.liquibase.net/datical-enterprisedb-edbas12:latest ports: - "5512:5444" restart: always # no environment or volumes as those were created at image creation edb-edb-13: - image: docker-dev.artifactory.datical.net/datical/datical-enterprisedb-edbas13:latest + image: docker.liquibase.net/datical-enterprisedb-edbas13:latest ports: - "5513:5444" restart: always # no environment or volumes as those were created at image creation edb-edb-14: - image: docker-dev.artifactory.datical.net/datical/datical-enterprisedb-edbas14:latest + image: docker.liquibase.net/datical-enterprisedb-edbas14:latest ports: - "5514:5444" restart: always diff --git a/src/test/resources/docker/docker-compose.yml b/src/test/resources/docker/docker-compose.yml index fcda18d47..f27bafae9 100644 --- a/src/test/resources/docker/docker-compose.yml +++ b/src/test/resources/docker/docker-compose.yml @@ -76,50 +76,6 @@ services: volumes: - "./percona-xtradb-cluster-init.sql:/docker-entrypoint-initdb.d/percona-xtradb-cluster-init.sql" - postgres-9.5: - image: postgres:9.5 - ports: - - "5432:5432" - restart: always - environment: - POSTGRES_PASSWORD: LbRootPass1 - POSTGRES_DB: lbcat - volumes: - - "./postgres-init.sh:/docker-entrypoint-initdb.d/postgres-init.sh" - - postgres-9: - image: postgres:9 - ports: - - "5433:5432" - restart: always - environment: - POSTGRES_PASSWORD: LbRootPass1 - POSTGRES_DB: lbcat - volumes: - - "./postgres-init.sh:/docker-entrypoint-initdb.d/postgres-init.sh" - - postgres-10: - image: postgres:10 - ports: - - "5434:5432" - restart: always - environment: - POSTGRES_PASSWORD: LbRootPass1 - POSTGRES_DB: lbcat - volumes: - - "./postgres-init.sh:/docker-entrypoint-initdb.d/postgres-init.sh" - - postgres-11: - image: postgres:11 - ports: - - "5435:5432" - restart: always - environment: - POSTGRES_PASSWORD: LbRootPass1 - POSTGRES_DB: lbcat - volumes: - - "./postgres-init.sh:/docker-entrypoint-initdb.d/postgres-init.sh" - postgres-12: image: postgres:12 ports: diff --git a/src/test/resources/docker/oracle-artifactory/docker-compose.yml b/src/test/resources/docker/oracle-artifactory/docker-compose.yml index e63121e17..d1d16bc23 100644 --- a/src/test/resources/docker/oracle-artifactory/docker-compose.yml +++ b/src/test/resources/docker/oracle-artifactory/docker-compose.yml @@ -3,7 +3,7 @@ version: '3.3' services: oracle-ee-19.3.0: - image: docker-dev.artifactory.datical.net/datical/oracle-ee:19.3.0-local + image: docker.liquibase.net/oracle-ee:19.3.0-local ports: - "1521:1521" restart: always diff --git a/src/test/resources/harness-config.yml b/src/test/resources/harness-config.yml index 78cf67012..43d5dab8b 100644 --- a/src/test/resources/harness-config.yml +++ b/src/test/resources/harness-config.yml @@ -37,34 +37,6 @@ databasesUnderTest: username: lbuser password: LiquibasePass1 - - name: postgresql - prefix: docker - version: 11 - url: jdbc:postgresql://localhost:5435/lbcat - username: lbuser - password: LiquibasePass1 - - - name: postgresql - prefix: docker - version: 10 - url: jdbc:postgresql://localhost:5434/lbcat - username: lbuser - password: LiquibasePass1 - - - name: postgresql - prefix: docker - version: 9 - url: jdbc:postgresql://localhost:5433/lbcat - username: lbuser - password: LiquibasePass1 - - - name: postgresql - prefix: docker - version: 9.5 - url: jdbc:postgresql://localhost:5432/lbcat - username: lbuser - password: LiquibasePass1 - - name: mysql prefix: docker version: 5.6