Files
zyt/artifacts/ej-medicine-incremental-sync/ROLLBACK.sh
T

23 lines
916 B
Bash
Executable File

#!/bin/sh
set -eu
ZYT_ROOT=${ZYT_ROOT:-/Users/long/Work/zyt}
EJ_ROOT=${EJ_ROOT:-/Users/long/Work/ej}
ZYT_BASE=27fbef9321c67f962e4d73f04a52272887c04f95
EJ_BASE=a7439cc2e8c37dd6c32c926f0cc39c1a9c9b4b67
git -C "$ZYT_ROOT" checkout "$ZYT_BASE" -- \
server/config/console.php \
server/tests/pharmacy/route_contracts.php
rm -f \
"$ZYT_ROOT/docs/ej-pharmacy-incremental-medicine-sync.md" \
"$ZYT_ROOT/server/app/command/EjPharmacyPushMedicines.php" \
"$ZYT_ROOT/server/app/common/service/pharmacy/EjMedicineIncrementalPushService.php" \
"$ZYT_ROOT/server/tests/pharmacy/incremental_medicine_push.php"
git -C "$EJ_ROOT" checkout "$EJ_BASE" -- \
server/app/common/service/pharmacy/MedicineImportService.php \
server/tests/pharmacy/route_contracts.php \
server/tests/pharmacy/medicine_import_mysql_integration.php
echo 'ROLLBACK_OK: ZYT incremental push removed; EJ unrelated-catalog preflight restored.'