ephraimbuddy opened a new pull request, #55981:
URL: https://github.com/apache/airflow/pull/55981

   Downgrading to Airflow ≤3.0.x could leave the metadata DB with serializer v3 
Dags that older versions cannot read or reserialize. This change automatically 
reserializes Dags to a compatible serializer version after a successful airflow 
db downgrade.
   On downgrade, we map the target Airflow version to a serializer version and 
reserialize all DAGs (skipped for --show-sql-only). The mapping is derived from 
a new _SER_DAG_VERSIONS_MAP, resolved from either --to-version or --to-revision.
   
   Adds db.reserialize_all_dags_to_serializer_version supporting 3→2 
down-conversion. It performs a SQL fast-path for uncompressed rows across the 
db types and falls back to row-wise updates for compressed rows. The function 
does not commit and logs warnings instead of failing the CLI.
   
   Tests cover triggering on --to-version, skipping with --show-sql-only, and 
the --to-revision path.
   
   User impact: Downgrading to 3.0.x no longer results in incompatible 
v3-serialized Dags; the scheduler/UI can read Dags immediately after the 
downgrade.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to