You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(django-google-spanner): implement full foreign key introspection and backend test support #19145
Spanner and the Spanner Emulator now support FOREIGN KEY constraints, and django-google-spanner already enables supports_foreign_keys = True in normal usage. However, full foreign key support in the Django backend is still incomplete (previously tracked in archived googleapis/python-spanner-django#313).
Remaining Work
Implement foreign key constraint introspection in DatabaseIntrospection.get_constraints() (populate "foreign_key": (ref_table, ref_column) instead of skipping CONSTRAINT_TYPE == "FOREIGN KEY", and filter or handle any backing indexes generated by Spanner).
Enable supports_foreign_keys and DatabaseSchemaEditor.sql_create_fk under RUNNING_SPANNER_BACKEND_TESTS=1 (or handle Spanner-specific FK limitations cleanly in features.py).
Update docs/limitations.rst to reflect current foreign key support.
Activity