Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added primary key exclusion

  • Loading branch information...
commit 01b442f22707771dc82ed7edbfe608f4e846a0d6 1 parent 7ea49ef
@bteller bteller authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/postgres.js
View
1  lib/postgres.js
@@ -22,6 +22,7 @@ var Postgres = function(connection){
information_schema.table_constraints tc \
where \
cu.constraint_name = tc.constraint_name \
+ and tc.constraint_type = 'PRIMARY KEY' \
and tc.table_name = ist.table_name \
) as pk \
from information_schema.tables ist \
Please sign in to comment.
Something went wrong with that request. Please try again.