mirror of
https://github.com/django/django.git
synced 2025-08-06 20:08:20 +00:00
Fixed #32234 -- Made inspectdb inform about composite primary keys.
This commit is contained in:
parent
ebf25555bb
commit
295249c901
10 changed files with 88 additions and 17 deletions
|
@ -49,6 +49,13 @@ class DatabaseFeatures(BaseDatabaseFeatures):
|
|||
V_I := P_I;
|
||||
END;
|
||||
$$ LANGUAGE plpgsql;"""
|
||||
create_test_table_with_composite_primary_key = """
|
||||
CREATE TABLE test_table_composite_pk (
|
||||
column_1 INTEGER NOT NULL,
|
||||
column_2 INTEGER NOT NULL,
|
||||
PRIMARY KEY(column_1, column_2)
|
||||
)
|
||||
"""
|
||||
requires_casted_case_in_updates = True
|
||||
supports_over_clause = True
|
||||
only_supports_unbounded_with_preceding_and_following = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue