Skip to content

Commit

Permalink
Merge pull request #406 from jprashanth/indexes_introspection_pg96
Browse files Browse the repository at this point in the history
Updated indexes ordering introspection for PostgreSQL 9.6
  • Loading branch information
goodtune committed Nov 10, 2016
2 parents 9b79674 + 9ba410f commit 206317a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tenant_schemas/postgresql_backend/introspection.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ class DatabaseSchemaIntrospection(BaseDatabaseIntrospection):
WHEN idx.indexprs IS NOT NULL THEN
pg_get_indexdef(idx.indexrelid)
END AS exprdef,
CASE
WHEN am.amcanorder THEN
CASE am.amname
WHEN 'btree' THEN
CASE (option & 1)
WHEN 1 THEN 'DESC' ELSE 'ASC'
END
Expand Down

0 comments on commit 206317a

Please sign in to comment.