Skip to content

fix(migrations): make early ClickHouse ADD COLUMN statements idempotent #1683

fix(migrations): make early ClickHouse ADD COLUMN statements idempotent

fix(migrations): make early ClickHouse ADD COLUMN statements idempotent #1683

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