This is an automated email from the ASF dual-hosted git repository. rahulvats pushed a commit to branch changes-3.1.8rc2 in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 3476670a3cb573c71a0355fb72a060c179129206 Author: Wei Lee <[email protected]> AuthorDate: Tue Mar 10 23:20:34 2026 +0800 fix(migration): disable disable_sqlite_fkeys for migration 0087 (#63256) (#63272) (cherry picked from commit bbf289779ca91f5b03772908743d8a5804487b84) (cherry picked from commit 06385323287f1cff41d4ee2dc31a3b76de75f3d4) --- airflow-core/docs/img/airflow_erd.sha256 | 2 +- airflow-core/docs/img/airflow_erd.svg | 120 ++++++++++----------- ...1_8_change_signed_url_template_from_varchar_.py | 38 ++++--- 3 files changed, 79 insertions(+), 81 deletions(-) diff --git a/airflow-core/docs/img/airflow_erd.sha256 b/airflow-core/docs/img/airflow_erd.sha256 index 5b0452f2453..ea41374282a 100644 --- a/airflow-core/docs/img/airflow_erd.sha256 +++ b/airflow-core/docs/img/airflow_erd.sha256 @@ -1 +1 @@ -a222f120b40cc9c82870945a44f9ba6a2aabce378716b5f0ced55c28e57c2bb6 \ No newline at end of file +623beee8d78f46ec2160d0e9142ff89535b67cb1828c5df1f940f1a260ef8046 \ No newline at end of file diff --git a/airflow-core/docs/img/airflow_erd.svg b/airflow-core/docs/img/airflow_erd.svg index 00b4126c30b..bfc639a1a3e 100644 --- a/airflow-core/docs/img/airflow_erd.svg +++ b/airflow-core/docs/img/airflow_erd.svg @@ -238,7 +238,7 @@ <text text-anchor="start" x="567" y="-2066.8" font-family="Helvetica,sans-Serif" font-size="14.00"> NOT NULL</text> </g> <!-- dag_bundle--dag_bundle_team --> -<g id="edge1" class="edge"> +<g id="edge2" class="edge"> <title>dag_bundle:name--dag_bundle_team:dag_bundle_name</title> <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M295,-2311C413.26,-2311 330.74,-2094 449,-2094"/> <text text-anchor="start" x="418" y="-2082.8" font-family="Times,serif" font-size="14.00">0..N</text> @@ -383,7 +383,7 @@ <text text-anchor="start" x="209" y="-1647.8" font-family="Helvetica,sans-Serif" font-size="14.00"> NOT NULL</text> </g> <!-- team--dag_bundle_team --> -<g id="edge2" class="edge"> +<g id="edge1" class="edge"> <title>team:id--dag_bundle_team:team_id</title> <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M291,-1675C377.09,-1675 356.16,-1976.03 409,-2044 421.87,-2060.55 428.04,-2069 449,-2069"/> <text text-anchor="start" x="418" y="-2057.8" font-family="Times,serif" font-size="14.00">0..N</text> @@ -572,7 +572,7 @@ <text text-anchor="start" x="1115.5" y="-947.8" font-family="Helvetica,sans-Serif" font-size="14.00"> NOT NULL</text> </g> <!-- asset_alias--asset_alias_asset --> -<g id="edge3" class="edge"> +<g id="edge4" class="edge"> <title>asset_alias:id--asset_alias_asset:alias_id</title> <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M751,-951C849.14,-951 872.36,-975 970.5,-975"/> <text text-anchor="start" x="939.5" y="-963.8" font-family="Times,serif" font-size="14.00">0..N</text> @@ -595,7 +595,7 @@ <text text-anchor="start" x="1116.5" y="-211.8" font-family="Helvetica,sans-Serif" font-size="14.00"> NOT NULL</text> </g> <!-- asset_alias--asset_alias_asset_event --> -<g id="edge5" class="edge"> +<g id="edge6" class="edge"> <title>asset_alias:id--asset_alias_asset_event:alias_id</title> <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M751,-951C1082.01,-951 638.49,-239 969.5,-239"/> <text text-anchor="start" x="938.5" y="-227.8" font-family="Times,serif" font-size="14.00">0..N</text> @@ -676,7 +676,7 @@ <text text-anchor="start" x="645" y="-1050.8" font-family="Helvetica,sans-Serif" font-size="14.00"> NOT NULL</text> </g> <!-- asset--asset_alias_asset --> -<g id="edge4" class="edge"> +<g id="edge3" class="edge"> <title>asset:id--asset_alias_asset:asset_id</title> <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M753,-1204C833.73,-1204 812.24,-1122.11 865,-1061 909.48,-1009.48 902.44,-950 970.5,-950"/> <text text-anchor="start" x="939.5" y="-938.8" font-family="Times,serif" font-size="14.00">0..N</text> @@ -723,18 +723,18 @@ </g> <!-- asset--asset_active --> <g id="edge9" class="edge"> -<title>asset:uri--asset_active:uri</title> -<path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M753,-1053C842.03,-1053 863.47,-1071 952.5,-1071"/> -<text text-anchor="start" x="942.5" y="-1059.8" font-family="Times,serif" font-size="14.00">1</text> -<text text-anchor="start" x="753" y="-1041.8" font-family="Times,serif" font-size="14.00">1</text> -</g> -<!-- asset--asset_active --> -<g id="edge10" class="edge"> <title>asset:name--asset_active:name</title> <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M753,-1103C841.72,-1103 863.78,-1096 952.5,-1096"/> <text text-anchor="start" x="942.5" y="-1084.8" font-family="Times,serif" font-size="14.00">1</text> <text text-anchor="start" x="753" y="-1091.8" font-family="Times,serif" font-size="14.00">1</text> </g> +<!-- asset--asset_active --> +<g id="edge10" class="edge"> +<title>asset:uri--asset_active:uri</title> +<path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M753,-1053C842.03,-1053 863.47,-1071 952.5,-1071"/> +<text text-anchor="start" x="942.5" y="-1059.8" font-family="Times,serif" font-size="14.00">1</text> +<text text-anchor="start" x="753" y="-1041.8" font-family="Times,serif" font-size="14.00">1</text> +</g> <!-- dag_schedule_asset_reference --> <g id="node24" class="node"> <title>dag_schedule_asset_reference</title> @@ -762,7 +762,7 @@ <text text-anchor="start" x="1127.5" y="-1924.8" font-family="Helvetica,sans-Serif" font-size="14.00"> NOT NULL</text> </g> <!-- asset--dag_schedule_asset_reference --> -<g id="edge19" class="edge"> +<g id="edge20" class="edge"> <title>asset:id--dag_schedule_asset_reference:asset_id</title> <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M753,-1204C794.44,-1204 808.43,-1222.03 829,-1258 875.28,-1338.93 853.43,-1583.49 865,-1676 877.58,-1776.56 875.34,-1803.23 902,-1901 914.79,-1947.9 892.89,-2003 941.5,-2003"/> <text text-anchor="start" x="910.5" y="-1991.8" font-family="Times,serif" font-size="14.00">0..N</text> @@ -838,7 +838,7 @@ <text text-anchor="start" x="1135.5" y="-2078.8" font-family="Helvetica,sans-Serif" font-size="14.00"> NOT NULL</text> </g> <!-- asset--task_inlet_asset_reference --> -<g id="edge24" class="edge"> +<g id="edge23" class="edge"> <title>asset:id--task_inlet_asset_reference:asset_id</title> <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M753,-1204C794.44,-1204 808.49,-1222 829,-1258 877.01,-1342.28 856.08,-1596.41 865,-1693 879.91,-1854.48 864.86,-1898.14 902,-2056 915.7,-2114.26 889.65,-2182 949.5,-2182"/> <text text-anchor="start" x="918.5" y="-2170.8" font-family="Times,serif" font-size="14.00">0..N</text> @@ -915,7 +915,7 @@ <text text-anchor="start" x="669" y="-13.8" font-family="Helvetica,sans-Serif" font-size="14.00"> NOT NULL</text> </g> <!-- asset_event--asset_alias_asset_event --> -<g id="edge6" class="edge"> +<g id="edge5" class="edge"> <title>asset_event:id--asset_alias_asset_event:event_id</title> <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M751,-192C848.6,-192 871.9,-214 969.5,-214"/> <text text-anchor="start" x="938.5" y="-202.8" font-family="Times,serif" font-size="14.00">0..N</text> @@ -1184,7 +1184,7 @@ <text text-anchor="start" x="1854" y="-1634.8" font-family="Helvetica,sans-Serif" font-size="14.00"> [INTEGER]</text> </g> <!-- trigger--deadline --> -<g id="edge44" class="edge"> +<g id="edge43" class="edge"> <title>trigger:id--deadline:trigger_id</title> <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M1656,-1603C1711.43,-1603 1720.57,-1637 1776,-1637"/> <text text-anchor="start" x="1745" y="-1625.8" font-family="Times,serif" font-size="14.00">0..N</text> @@ -1254,7 +1254,7 @@ <text text-anchor="start" x="812" y="-2787.8" font-family="Times,serif" font-size="14.00">1</text> </g> <!-- dag--dag_schedule_asset_reference --> -<g id="edge20" class="edge"> +<g id="edge19" class="edge"> <title>dag:dag_id--dag_schedule_asset_reference:dag_id</title> <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M822,-2799C863.52,-2799 890.31,-2095.84 902,-2056 913.05,-2018.33 902.24,-1977 941.5,-1977"/> <text text-anchor="start" x="910.5" y="-1965.8" font-family="Times,serif" font-size="14.00">0..N</text> @@ -1268,7 +1268,7 @@ <text text-anchor="start" x="822" y="-2795.3" font-family="Times,serif" font-size="14.00">1</text> </g> <!-- dag--task_inlet_asset_reference --> -<g id="edge23" class="edge"> +<g id="edge24" class="edge"> <title>dag:dag_id--task_inlet_asset_reference:dag_id</title> <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M822,-2799C853.65,-2799 891.33,-2264.79 902,-2235 915.69,-2196.79 908.91,-2157 949.5,-2157"/> <text text-anchor="start" x="918.5" y="-2145.8" font-family="Times,serif" font-size="14.00">0..N</text> @@ -1552,7 +1552,7 @@ <text text-anchor="start" x="1452" y="-473.8" font-family="Helvetica,sans-Serif" font-size="14.00"> [TIMESTAMP]</text> </g> <!-- dag_version--dag_run --> -<g id="edge34" class="edge"> +<g id="edge32" class="edge"> <title>dag_version:id--dag_run:created_dag_version_id</title> <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M1225.5,-2411C1388.32,-2411 1199.18,-952 1362,-952"/> <text text-anchor="start" x="1331" y="-940.8" font-family="Times,serif" font-size="14.00">0..N</text> @@ -1696,7 +1696,7 @@ <text text-anchor="start" x="1074.5" y="-315.8" font-family="Helvetica,sans-Serif" font-size="14.00"> NOT NULL</text> </g> <!-- log_template--dag_run --> -<g id="edge32" class="edge"> +<g id="edge34" class="edge"> <title>log_template:id--dag_run:log_template_id</title> <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M1214.5,-394C1396.49,-394 1180.01,-776 1362,-776"/> <text text-anchor="start" x="1331" y="-764.8" font-family="Times,serif" font-size="14.00">0..N</text> @@ -1724,7 +1724,7 @@ <text text-anchor="start" x="1660" y="-664.8" font-family="Times,serif" font-size="14.00">1</text> </g> <!-- dag_run--deadline --> -<g id="edge43" class="edge"> +<g id="edge44" class="edge"> <title>dag_run:id--deadline:dagrun_id</title> <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M1660,-1102C1740.23,-1102 1703.89,-1379.41 1720,-1458 1734.04,-1526.54 1740.29,-1543.06 1757,-1611 1765.31,-1644.81 1741.18,-1687 1776,-1687"/> <text text-anchor="start" x="1745" y="-1675.8" font-family="Times,serif" font-size="14.00">0..N</text> @@ -1765,7 +1765,7 @@ <text text-anchor="start" x="1954" y="-271.8" font-family="Helvetica,sans-Serif" font-size="14.00"> NOT NULL</text> </g> <!-- dag_run--backfill_dag_run --> -<g id="edge45" class="edge"> +<g id="edge46" class="edge"> <title>dag_run:id--backfill_dag_run:dag_run_id</title> <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M1660,-1102C1744.79,-1102 1699.21,-349 1784,-349"/> <text text-anchor="start" x="1753" y="-337.8" font-family="Times,serif" font-size="14.00">0..N</text> @@ -1878,7 +1878,7 @@ <text text-anchor="start" x="1258.5" y="-793.8" font-family="Times,serif" font-size="14.00">{0,1}</text> </g> <!-- backfill--backfill_dag_run --> -<g id="edge46" class="edge"> +<g id="edge45" class="edge"> <title>backfill:id--backfill_dag_run:backfill_id</title> <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M1258.5,-805C1419.75,-805 1221.04,-562.01 1338,-451 1483.84,-312.57 1582.92,-375 1784,-375"/> <text text-anchor="start" x="1753" y="-363.8" font-family="Times,serif" font-size="14.00">0..N</text> @@ -1992,19 +1992,19 @@ </g> <!-- task_instance--task_map --> <g id="edge49" class="edge"> -<title>task_instance:run_id--task_map:run_id</title> -<path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M2074,-932C2116.21,-932 2104.14,-1076.8 2117,-1117 2141.17,-1192.54 2105.68,-1282 2185,-1282"/> -<text text-anchor="start" x="2154" y="-1270.8" font-family="Times,serif" font-size="14.00">0..N</text> -<text text-anchor="start" x="2074" y="-920.8" font-family="Times,serif" font-size="14.00">1</text> -</g> -<!-- task_instance--task_map --> -<g id="edge50" class="edge"> <title>task_instance:dag_id--task_map:dag_id</title> <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M2074,-1483C2094.73,-1483 2164.27,-1333 2185,-1333"/> <text text-anchor="start" x="2154" y="-1321.8" font-family="Times,serif" font-size="14.00">0..N</text> <text text-anchor="start" x="2074" y="-1471.8" font-family="Times,serif" font-size="14.00">1</text> </g> <!-- task_instance--task_map --> +<g id="edge50" class="edge"> +<title>task_instance:task_id--task_map:task_id</title> +<path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M2074,-782C2096.66,-782 2147.42,-1160.31 2154,-1182 2164.48,-1216.51 2148.93,-1257 2185,-1257"/> +<text text-anchor="start" x="2154" y="-1245.8" font-family="Times,serif" font-size="14.00">0..N</text> +<text text-anchor="start" x="2074" y="-770.8" font-family="Times,serif" font-size="14.00">1</text> +</g> +<!-- task_instance--task_map --> <g id="edge51" class="edge"> <title>task_instance:map_index--task_map:map_index</title> <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M2074,-1258C2128.11,-1258 2130.89,-1308 2185,-1308"/> @@ -2013,10 +2013,10 @@ </g> <!-- task_instance--task_map --> <g id="edge52" class="edge"> -<title>task_instance:task_id--task_map:task_id</title> -<path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M2074,-782C2096.66,-782 2147.42,-1160.31 2154,-1182 2164.48,-1216.51 2148.93,-1257 2185,-1257"/> -<text text-anchor="start" x="2154" y="-1245.8" font-family="Times,serif" font-size="14.00">0..N</text> -<text text-anchor="start" x="2074" y="-770.8" font-family="Times,serif" font-size="14.00">1</text> +<title>task_instance:run_id--task_map:run_id</title> +<path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M2074,-932C2155.6,-932 2103.4,-1282 2185,-1282"/> +<text text-anchor="start" x="2154" y="-1270.8" font-family="Times,serif" font-size="14.00">0..N</text> +<text text-anchor="start" x="2074" y="-920.8" font-family="Times,serif" font-size="14.00">1</text> </g> <!-- task_reschedule --> <g id="node45" class="node"> @@ -2115,25 +2115,25 @@ </g> <!-- task_instance--xcom --> <g id="edge55" class="edge"> +<title>task_instance:run_id--xcom:run_id</title> +<path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M2074,-932C2120.47,-932 2102.42,-1303.88 2117,-1348 2135.32,-1403.44 2125.61,-1461 2184,-1461"/> +<text text-anchor="start" x="2153" y="-1449.8" font-family="Times,serif" font-size="14.00">0..N</text> +<text text-anchor="start" x="2074" y="-935.8" font-family="Times,serif" font-size="14.00">1</text> +</g> +<!-- task_instance--xcom --> +<g id="edge56" class="edge"> <title>task_instance:task_id--xcom:task_id</title> <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M2074,-782C2132.86,-782 2105.22,-1252.33 2117,-1310 2135.85,-1402.26 2089.83,-1511 2184,-1511"/> <text text-anchor="start" x="2153" y="-1499.8" font-family="Times,serif" font-size="14.00">0..N</text> <text text-anchor="start" x="2074" y="-785.8" font-family="Times,serif" font-size="14.00">1</text> </g> <!-- task_instance--xcom --> -<g id="edge56" class="edge"> +<g id="edge57" class="edge"> <title>task_instance:map_index--xcom:map_index</title> <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M2074,-1258C2154.52,-1258 2085.04,-1360.09 2117,-1434 2138.68,-1484.12 2129.39,-1537 2184,-1537"/> <text text-anchor="start" x="2153" y="-1525.8" font-family="Times,serif" font-size="14.00">0..N</text> <text text-anchor="start" x="2074" y="-1261.8" font-family="Times,serif" font-size="14.00">1</text> </g> -<!-- task_instance--xcom --> -<g id="edge57" class="edge"> -<title>task_instance:run_id--xcom:run_id</title> -<path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M2074,-932C2117.82,-932 2104.8,-1281.91 2117,-1324 2135.87,-1389.1 2116.22,-1461 2184,-1461"/> -<text text-anchor="start" x="2153" y="-1449.8" font-family="Times,serif" font-size="14.00">0..N</text> -<text text-anchor="start" x="2074" y="-935.8" font-family="Times,serif" font-size="14.00">1</text> -</g> <!-- task_instance_note --> <g id="node47" class="node"> <title>task_instance_note</title> @@ -2338,19 +2338,19 @@ </g> <!-- task_instance--task_instance_history --> <g id="edge60" class="edge"> -<title>task_instance:map_index--task_instance_history:map_index</title> -<path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M2074,-1258C2142.45,-1258 2098.14,-1018.8 2117,-953 2130.27,-906.71 2112.85,-854 2161,-854"/> -<text text-anchor="start" x="2130" y="-842.8" font-family="Times,serif" font-size="14.00">0..N</text> -<text text-anchor="start" x="2064" y="-1246.8" font-family="Times,serif" font-size="14.00">1</text> -</g> -<!-- task_instance--task_instance_history --> -<g id="edge61" class="edge"> <title>task_instance:run_id--task_instance_history:run_id</title> <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M2074,-932C2165.84,-932 2069.16,-528 2161,-528"/> <text text-anchor="start" x="2130" y="-516.8" font-family="Times,serif" font-size="14.00">0..N</text> <text text-anchor="start" x="2064" y="-920.8" font-family="Times,serif" font-size="14.00">1</text> </g> <!-- task_instance--task_instance_history --> +<g id="edge61" class="edge"> +<title>task_instance:map_index--task_instance_history:map_index</title> +<path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M2074,-1258C2142.45,-1258 2098.14,-1018.8 2117,-953 2130.27,-906.71 2112.85,-854 2161,-854"/> +<text text-anchor="start" x="2130" y="-842.8" font-family="Times,serif" font-size="14.00">0..N</text> +<text text-anchor="start" x="2064" y="-1246.8" font-family="Times,serif" font-size="14.00">1</text> +</g> +<!-- task_instance--task_instance_history --> <g id="edge62" class="edge"> <title>task_instance:dag_id--task_instance_history:dag_id</title> <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M2074,-1483C2122.64,-1483 2112.36,-1054 2161,-1054"/> @@ -2394,19 +2394,19 @@ </g> <!-- task_instance--rendered_task_instance_fields --> <g id="edge63" class="edge"> +<title>task_instance:task_id--rendered_task_instance_fields:task_id</title> +<path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M2074,-782C2129.76,-782 2106.12,-336.69 2117,-282 2133.65,-198.32 2089.68,-99 2175,-99"/> +<text text-anchor="start" x="2144" y="-87.8" font-family="Times,serif" font-size="14.00">0..N</text> +<text text-anchor="start" x="2064" y="-785.8" font-family="Times,serif" font-size="14.00">1</text> +</g> +<!-- task_instance--rendered_task_instance_fields --> +<g id="edge64" class="edge"> <title>task_instance:map_index--rendered_task_instance_fields:map_index</title> <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M2074,-1258C2111.96,-1258 2113.8,-613.83 2117,-576 2130.12,-421.02 2125.47,-380.9 2154,-228 2160.58,-192.71 2139.1,-150 2175,-150"/> <text text-anchor="start" x="2144" y="-138.8" font-family="Times,serif" font-size="14.00">0..N</text> <text text-anchor="start" x="2064" y="-1261.8" font-family="Times,serif" font-size="14.00">1</text> </g> <!-- task_instance--rendered_task_instance_fields --> -<g id="edge64" class="edge"> -<title>task_instance:dag_id--rendered_task_instance_fields:dag_id</title> -<path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M2074,-1483C2091.47,-1483 2150.18,-245.04 2154,-228 2159.54,-203.28 2149.66,-175 2175,-175"/> -<text text-anchor="start" x="2144" y="-163.8" font-family="Times,serif" font-size="14.00">0..N</text> -<text text-anchor="start" x="2064" y="-1486.8" font-family="Times,serif" font-size="14.00">1</text> -</g> -<!-- task_instance--rendered_task_instance_fields --> <g id="edge65" class="edge"> <title>task_instance:run_id--rendered_task_instance_fields:run_id</title> <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M2074,-932C2076.46,-932 2153.62,-230.43 2154,-228 2161.34,-181.42 2127.84,-124 2175,-124"/> @@ -2415,10 +2415,10 @@ </g> <!-- task_instance--rendered_task_instance_fields --> <g id="edge66" class="edge"> -<title>task_instance:task_id--rendered_task_instance_fields:task_id</title> -<path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M2074,-782C2112.36,-782 2136.64,-99 2175,-99"/> -<text text-anchor="start" x="2144" y="-87.8" font-family="Times,serif" font-size="14.00">0..N</text> -<text text-anchor="start" x="2064" y="-785.8" font-family="Times,serif" font-size="14.00">1</text> +<title>task_instance:dag_id--rendered_task_instance_fields:dag_id</title> +<path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" d="M2074,-1483C2091.47,-1483 2150.18,-245.04 2154,-228 2159.54,-203.28 2149.66,-175 2175,-175"/> +<text text-anchor="start" x="2144" y="-163.8" font-family="Times,serif" font-size="14.00">0..N</text> +<text text-anchor="start" x="2064" y="-1486.8" font-family="Times,serif" font-size="14.00">1</text> </g> <!-- alembic_version --> <g id="node50" class="node"> diff --git a/airflow-core/src/airflow/migrations/versions/0087_3_1_8_change_signed_url_template_from_varchar_.py b/airflow-core/src/airflow/migrations/versions/0087_3_1_8_change_signed_url_template_from_varchar_.py index 9fae0722c8c..7966e10d1f2 100644 --- a/airflow-core/src/airflow/migrations/versions/0087_3_1_8_change_signed_url_template_from_varchar_.py +++ b/airflow-core/src/airflow/migrations/versions/0087_3_1_8_change_signed_url_template_from_varchar_.py @@ -30,6 +30,8 @@ from __future__ import annotations import sqlalchemy as sa from alembic import op +from airflow.migrations.utils import disable_sqlite_fkeys + # revision identifiers, used by Alembic. revision = "509b94a1042d" down_revision = "82dbd68e6171" @@ -40,27 +42,23 @@ airflow_version = "3.1.8" def upgrade(): """Apply Change signed_url_template from VARCHAR(200) to TEXT.""" - # ### commands auto generated by Alembic - please adjust! ### - with op.batch_alter_table("dag_bundle", schema=None) as batch_op: - batch_op.alter_column( - "signed_url_template", - existing_type=sa.VARCHAR(length=200), - type_=sa.Text(), - existing_nullable=True, - ) - - # ### end Alembic commands ### + with disable_sqlite_fkeys(op): + with op.batch_alter_table("dag_bundle", schema=None) as batch_op: + batch_op.alter_column( + "signed_url_template", + existing_type=sa.VARCHAR(length=200), + type_=sa.Text(), + existing_nullable=True, + ) def downgrade(): """Unapply Change signed_url_template from VARCHAR(200) to TEXT.""" - # ### commands auto generated by Alembic - please adjust! ### - with op.batch_alter_table("dag_bundle", schema=None) as batch_op: - batch_op.alter_column( - "signed_url_template", - existing_type=sa.Text(), - type_=sa.VARCHAR(length=200), - existing_nullable=True, - ) - - # ### end Alembic commands ### + with disable_sqlite_fkeys(op): + with op.batch_alter_table("dag_bundle", schema=None) as batch_op: + batch_op.alter_column( + "signed_url_template", + existing_type=sa.Text(), + type_=sa.VARCHAR(length=200), + existing_nullable=True, + )
