-- Migration: Add last_status_pushed_at to integration_order_sync_state
-- Purpose: Track cursor for orderPRO -> shopPRO status push sync
-- Idempotent: uses IF NOT EXISTS

ALTER TABLE integration_order_sync_state
    ADD COLUMN IF NOT EXISTS last_status_pushed_at DATETIME NULL DEFAULT NULL
    AFTER last_success_at;
