fix(models): correct TabState.latest_query_id column type to match FK target (#38837)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
(cherry picked from commit 4b26f8c712)
This commit is contained in:
Joe Li
2026-03-25 01:24:53 -07:00
committed by Michael S. Molina
parent 9a35a4f43a
commit c4af1cbca7

View File

@@ -540,7 +540,7 @@ class TabState(AuditMixinNullable, ExtraJSONMixin, Model):
# latest query that was run
latest_query_id = Column(
Integer, ForeignKey("query.client_id", ondelete="SET NULL")
String(11), ForeignKey("query.client_id", ondelete="SET NULL")
)
latest_query = relationship("Query")