Skip to content

Commit 4b26f8c

Browse files
sadpandajoeclaude
andauthored
fix(models): correct TabState.latest_query_id column type to match FK target (apache#38837)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 37c4a36 commit 4b26f8c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

superset/models/sql_lab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ class TabState(AuditMixinNullable, ExtraJSONMixin, Model):
540540

541541
# latest query that was run
542542
latest_query_id = Column(
543-
Integer, ForeignKey("query.client_id", ondelete="SET NULL")
543+
String(11), ForeignKey("query.client_id", ondelete="SET NULL")
544544
)
545545
latest_query = relationship("Query")
546546

0 commit comments

Comments
 (0)