# Upgrade 0.78.24.1

Uruchom jako administrator:

```text
/upgrade_0_78_24_1.php
```

Upgrade wykonuje idempotentnie:

1. naprawę schematu Communication Hub,
2. naprawę/utworzenie Communication Bridge,
3. seed policies,
4. rejestrację Communication Bridge w Module Registry,
5. sync Work Queue → Outbox,
6. kwarantannę unsafe approved/materialized drafts,
7. wyłączenie auto-send i auto-materialize,
8. naprawę OR Event Stream safety guards,
9. lekką synchronizację OR Event Stream,
10. zapis migracji w ledgerze,
11. Runtime Preflight po upgrade.

Oczekiwane po naprawie:

- `enterprise_communication_bridge_no_auto_send`: OK,
- `enterprise_communication_bridge_safety`: OK albo liczba unsafe draftów zostaje przeniesiona do statusu `blocked`,
- `enterprise_or_event_stream_no_auto_actions`: OK,
- `preflight_helper_error_balt0787_preflight_checks`: brak,
- `communication_hub_schema`: OK,
- `communication_bridge_module`: OK,
- `communication_policies_seeded`: OK.
