Loading django/db/backends/oracle/introspection.py +2 −1 Original line number Diff line number Diff line Loading @@ -180,7 +180,7 @@ class DatabaseIntrospection(BaseDatabaseIntrospection): "unique": unique, "foreign_key": None, "check": check, "index": True, "index": True, # All P and U come with index, see inner join above } # Record the details constraints[constraint]['columns'].append(column) Loading Loading @@ -258,6 +258,7 @@ class DatabaseIntrospection(BaseDatabaseIntrospection): FROM user_constraints cons WHERE cols.index_name = cons.index_name ) ORDER BY cols.column_position """, [table_name]) for constraint, column in cursor.fetchall(): # If we're the first column, make the record Loading Loading
django/db/backends/oracle/introspection.py +2 −1 Original line number Diff line number Diff line Loading @@ -180,7 +180,7 @@ class DatabaseIntrospection(BaseDatabaseIntrospection): "unique": unique, "foreign_key": None, "check": check, "index": True, "index": True, # All P and U come with index, see inner join above } # Record the details constraints[constraint]['columns'].append(column) Loading Loading @@ -258,6 +258,7 @@ class DatabaseIntrospection(BaseDatabaseIntrospection): FROM user_constraints cons WHERE cols.index_name = cons.index_name ) ORDER BY cols.column_position """, [table_name]) for constraint, column in cursor.fetchall(): # If we're the first column, make the record Loading