v6.0.1
Release Notes - v6.0.1
Fixed
- Database Schema Migration: Fixed primary key handling for segment data models
- Updated
DarkFiberSegmentData,EthernetServiceSegmentData, andOpticalSpectrumSegmentDatato use auto-generatedidprimary key instead ofsegment_id - Implemented custom database migration (0037) with proper SQL handling to safely transition primary keys
- Added UNIQUE constraints on
segment_idto maintain OneToOneField relationships
- Updated
Changed
- Modified segment foreign key relationships to remove
primary_key=Trueconstraint across all segment data models - This change improves database flexibility and follows Django ORM best practices
Technical Details
- Migration:
0037_darkfibersegmentdata_id_and_more.pyhandles the schema transformation with backward compatibility - Updated models:
cesnet_service_path_plugin/models/dark_fiber_data.pycesnet_service_path_plugin/models/ethernet_service_data.pycesnet_service_path_plugin/models/optical_spectrum_data.py
Full Changelog: v6.0.0...6.0.1