This is an automated email from the ASF dual-hosted git repository.

vincbeck pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 08ba7100b50 Add `if_not_exists=True` to FAB migration (#56100)
08ba7100b50 is described below

commit 08ba7100b503f2babff814ae41970cc09dae19e2
Author: Lucas Rodrigues <[email protected]>
AuthorDate: Thu Sep 25 14:51:22 2025 -0300

    Add `if_not_exists=True` to FAB migration (#56100)
---
 .../fab/migrations/versions/0001_1_4_0_create_ab_tables_if_missing.py    | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/providers/fab/src/airflow/providers/fab/migrations/versions/0001_1_4_0_create_ab_tables_if_missing.py
 
b/providers/fab/src/airflow/providers/fab/migrations/versions/0001_1_4_0_create_ab_tables_if_missing.py
index f222883aacf..e281437c9c6 100644
--- 
a/providers/fab/src/airflow/providers/fab/migrations/versions/0001_1_4_0_create_ab_tables_if_missing.py
+++ 
b/providers/fab/src/airflow/providers/fab/migrations/versions/0001_1_4_0_create_ab_tables_if_missing.py
@@ -121,6 +121,7 @@ def upgrade() -> None:
         sa.Column("name", sa.String(length=250), nullable=False),
         sa.PrimaryKeyConstraint("id", name=op.f("ab_view_menu_pkey")),
         sa.UniqueConstraint("name", name=op.f("ab_view_menu_name_uq")),
+        if_not_exists=True,
     )
     op.create_table(
         "ab_group_role",

Reply via email to