sjyangkevin commented on code in PR #77138:
URL: https://github.com/apache/airflow/pull/77138#discussion_r4643933682


##########
providers/fab/src/airflow/providers/fab/auth_manager/models/__init__.py:
##########
@@ -276,6 +276,9 @@ class User(Model, BaseUser):
     last_login: Mapped[datetime.datetime | None] = mapped_column(DateTime, 
nullable=True)
     login_count: Mapped[int | None] = mapped_column(Integer, nullable=True)
     fail_login_count: Mapped[int | None] = mapped_column(Integer, 
nullable=True)
+    # Incremented on every password change. Tokens and sessions record the 
value they were issued
+    # under and stop being accepted once it moves on.
+    token_generation: Mapped[int] = mapped_column(Integer, nullable=False, 
default=0, server_default="0")

Review Comment:
   Thanks. The changelog has been updated to include this migration need.



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