mirror of
https://github.com/django/django.git
synced 2025-06-01 17:49:12 +00:00
Minor oracle fixes
This commit is contained in:
parent
157604a87f
commit
5b522cd85a
@ -180,7 +180,7 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
|
|||||||
"unique": unique,
|
"unique": unique,
|
||||||
"foreign_key": None,
|
"foreign_key": None,
|
||||||
"check": check,
|
"check": check,
|
||||||
"index": True,
|
"index": True, # All P and U come with index, see inner join above
|
||||||
}
|
}
|
||||||
# Record the details
|
# Record the details
|
||||||
constraints[constraint]['columns'].append(column)
|
constraints[constraint]['columns'].append(column)
|
||||||
@ -258,6 +258,7 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
|
|||||||
FROM user_constraints cons
|
FROM user_constraints cons
|
||||||
WHERE cols.index_name = cons.index_name
|
WHERE cols.index_name = cons.index_name
|
||||||
)
|
)
|
||||||
|
ORDER BY cols.column_position
|
||||||
""", [table_name])
|
""", [table_name])
|
||||||
for constraint, column in cursor.fetchall():
|
for constraint, column in cursor.fetchall():
|
||||||
# If we're the first column, make the record
|
# If we're the first column, make the record
|
||||||
|
Loading…
x
Reference in New Issue
Block a user