uranusjr commented on code in PR #44778:
URL: https://github.com/apache/airflow/pull/44778#discussion_r1875683893


##########
airflow/migrations/versions/0039_3_0_0_tweak_assetaliasmodel_to_match_asset.py:
##########
@@ -59,7 +60,12 @@ def upgrade():
     """Tweak AssetAliasModel to match AssetModel."""
     with op.batch_alter_table("dataset_alias", schema=None) as batch_op:
         batch_op.alter_column("name", type_=_STRING_COLUMN_TYPE, 
nullable=False)
-        batch_op.add_column(sa.Column("group", _STRING_COLUMN_TYPE, 
default=str, nullable=False))
+        batch_op.add_column(sa.Column("group", _STRING_COLUMN_TYPE))
+    with Session(bind=op.get_bind()) as session:
+        session.execute(sa.text("update dataset_alias set group='asset'"))

Review Comment:
   Oh yeah forgot to fix this (I fixed the asset.group migration)



-- 
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