Remove legacy live_stream_thumbnail URL fields from Season and Match models
#233
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR completes the migration to binary thumbnail storage by removing the legacy
live_stream_thumbnailURL fields from both Season and Match models, following the data migration implemented in #165.Background
As part of implementing database-stored YouTube thumbnail management, we added new
live_stream_thumbnail_imageBinaryField to both Season and Match models. The data migration in0054_migrate_thumbnail_urls_to_binary.pyconverted existing URL thumbnails to binary data. With the migration complete and binary thumbnail system verified in production, these legacy URL fields can now be safely removed.Changes
Model Updates:
live_stream_thumbnailURLField fromSeasonmodellive_stream_thumbnailURLField fromMatchmodellive_stream_thumbnail_imageBinaryField exclusivelyAPI Updates:
live_stream_thumbnailfromMatchSerializerfields in REST APIget_thumbnail_media_upload(),live_stream_thumbnail_response())Database Migration:
0056_remove_live_stream_thumbnail_url_fields.pyto drop the URL field columnsVerification
All existing functionality continues to work correctly:
The binary thumbnail system provides the same functionality as the previous URL-based system while enabling better control over thumbnail data and eliminating dependencies on external URLs.
Related
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.