fix(migrations): make early ClickHouse ADD COLUMN statements idempotent #1683
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Database Migration Prefix Check" | |
| run-name: "Backend Database Migration Prefix Check on ${{ github.ref_name }} by @${{ github.actor }}" | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| paths: | |
| - "apps/opik-backend/src/main/resources/liquibase/db-app-state/migrations/**" | |
| - "apps/opik-backend/src/main/resources/liquibase/db-app-analytics/migrations/**" | |
| - "scripts/**" | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| check-migration-prefix-conflicts: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Checkout PR branch | |
| uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 # Fetch full history to compare with main | |
| - name: Check for migration prefix conflicts | |
| shell: bash | |
| run: ./scripts/check_backend_migration_conflicts.sh | |
| - name: Check ADD COLUMN idempotency in analytics migrations | |
| shell: bash | |
| run: ./scripts/check_clickhouse_migrations_idempotent.sh |