mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
Migration issue resolution
This commit is contained in:
11
.github/workflows/deploy.yml
vendored
11
.github/workflows/deploy.yml
vendored
@@ -162,6 +162,17 @@ jobs:
|
||||
-t "${COMPOSE_PROJECT_NAME}-${{ matrix.service }}-migration" \
|
||||
.
|
||||
|
||||
- name: Resolve failed migrations for ${{ matrix.service }}
|
||||
if: matrix.service == 'passenger-api'
|
||||
run: |
|
||||
set -euo pipefail
|
||||
docker run --rm --env-file "${SERVICE_ENV_FILE}" \
|
||||
--entrypoint npx \
|
||||
"${COMPOSE_PROJECT_NAME}-${{ matrix.service }}-migration" \
|
||||
prisma migrate resolve \
|
||||
--applied 20260718144855_unique_constraint_schedule_id_seat_id_departure_station_id \
|
||||
|| true
|
||||
|
||||
- name: Run migrations for ${{ matrix.service }}
|
||||
if: contains(fromJson('["passenger-api", "payment-api"]'), matrix.service)
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user