update
This commit is contained in:
@@ -105,6 +105,7 @@ Migracje z prefiksem `ensure_` to migracje kompensujące — zostały dodane
|
||||
- indeksy pod filtrowanie po czasie/zdarzeniu/statusie/regule/zamowieniu,
|
||||
- seed harmonogramu `cron_schedules` dla joba `automation_history_cleanup` (retencja historii starszej niz 30 dni).
|
||||
- 2026-04-04: Hotfix trackingu Allegro Delivery (edge API) - rozszerzono mapowanie statusow EN i fallback keyword matching (`Parcel is awaiting pick-up`, `Parcel has been delivered`, itp.) w warstwie aplikacyjnej; bez zmian schematu bazy.
|
||||
- 2026-04-07: Dodano tabele `order_status_pull_mappings` — dedykowane mapowanie pull (shopPRO → orderPRO) z UNIQUE na `(integration_id, shoppro_status_code)`. Migracja `20260407_000079_pull_status_mappings.sql` tworzy tabele i pre-populuje z istniejacych danych push mappings.
|
||||
|
||||
## Tabele
|
||||
|
||||
@@ -190,6 +191,19 @@ Migracje z prefiksem `ensure_` to migracje kompensujące — zostały dodane
|
||||
- Klucze obce:
|
||||
- `order_status_mappings_integration_fk`: `integration_id` -> `integrations.id` (`ON DELETE CASCADE`, `ON UPDATE CASCADE`).
|
||||
|
||||
### `order_status_pull_mappings`
|
||||
- Mapowanie pull statusow shopPRO na statusy orderPRO (kierunek import/pull). UNIQUE na shoppro_status_code per integracja.
|
||||
- Kolumny:
|
||||
- `id` (PK, int, AI),
|
||||
- `integration_id` (int, NOT NULL),
|
||||
- `shoppro_status_code` (varchar 100, NOT NULL),
|
||||
- `shoppro_status_name` (varchar 255, nullable),
|
||||
- `orderpro_status_code` (varchar 100, NOT NULL),
|
||||
- `created_at`, `updated_at`.
|
||||
- Indeksy:
|
||||
- `order_status_pull_mappings_integration_shoppro_unique` (UNIQUE: `integration_id`, `shoppro_status_code`),
|
||||
- `order_status_pull_mappings_integration_idx` (`integration_id`).
|
||||
|
||||
### `allegro_integration_settings`
|
||||
- Konfiguracja OAuth i sync dla integracji Allegro per srodowisko (`sandbox|production`) zarzadzana z `Ustawienia > Integracje > Allegro`.
|
||||
- Kolumny:
|
||||
|
||||
Reference in New Issue
Block a user