Database Schema: ✅ Added local_campaign_id VARCHAR(50) column ✅ Stores the immediate campaign the asset belongs to (C000000551) Enhanced Extraction: ✅ extract_global_campaign_reference() now returns 3 values: - global_master_campaign_id (C000000068) - global_master_folder_id (676f2bcde4c7...) - local_campaign_id (C000000551) ✅ Extracts FERRERO.FIELD.CAMPAIGN ID from same collection ✅ Only sets local_campaign_id if that collection has global reference ✅ Logs all three IDs when found A1→A2 Script: ✅ Passes local_campaign_id to store_master_asset() ✅ Stores complete campaign relationship Database Now Stores: - tracking_id: ABC123 (unique 6-char) - opentext_id: 0008a50... (DAM asset ID) - local_campaign_id: C000000551 (immediate campaign) - global_master_campaign_id: C000000068 (global master) - global_master_folder_id: 676f2bcde4c7... (global folder) Example Relationship: - Asset downloaded from Local Campaign C000000551 - That campaign references Global Master C000000068 - All three IDs stored for complete traceability Database schema now complete with full campaign relationship tracking! 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __pycache__ | ||
| __init__.py | ||
| box_client.py | ||
| config_loader.py | ||
| dam_client.py | ||
| database.py | ||
| filename_parser.py | ||
| metadata_extractor_mvp.py | ||
| notifier.py | ||