Skip to content

v6.0.1

Choose a tag to compare

@Kani999 Kani999 released this 17 Feb 09:27
· 16 commits to main since this release

Release Notes - v6.0.1

Fixed

  • Database Schema Migration: Fixed primary key handling for segment data models
    • Updated DarkFiberSegmentData, EthernetServiceSegmentData, and OpticalSpectrumSegmentData to use auto-generated id primary key instead of segment_id
    • Implemented custom database migration (0037) with proper SQL handling to safely transition primary keys
    • Added UNIQUE constraints on segment_id to maintain OneToOneField relationships

Changed

  • Modified segment foreign key relationships to remove primary_key=True constraint across all segment data models
  • This change improves database flexibility and follows Django ORM best practices

Technical Details

  • Migration: 0037_darkfibersegmentdata_id_and_more.py handles the schema transformation with backward compatibility
  • Updated models:
    • cesnet_service_path_plugin/models/dark_fiber_data.py
    • cesnet_service_path_plugin/models/ethernet_service_data.py
    • cesnet_service_path_plugin/models/optical_spectrum_data.py

Full Changelog: v6.0.0...6.0.1