File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
adminforth/dataConnectors Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -70,20 +70,20 @@ class PostgresConnector extends AdminForthBaseConnector implements IAdminForthDa
7070 }
7171
7272 private async hasPgCascadeFk ( tableName : string , schema = 'public' ) : Promise < boolean > {
73- const res = await this . client . query (
74- `
75- SELECT 1
76- FROM pg_constraint
77- WHERE contype = 'f'
78- AND confrelid = ($2 || '.' || $1)::regclass
79- AND confdeltype = 'c'
80- LIMIT 1
81- ` ,
82- [ tableName , schema ]
83- ) ;
84-
85- return res . rowCount > 0 ;
86- }
73+ const res = await this . client . query (
74+ `
75+ SELECT 1
76+ FROM pg_constraint
77+ WHERE contype = 'f'
78+ AND confrelid = ($2 || '.' || $1)::regclass
79+ AND confdeltype = 'c'
80+ LIMIT 1
81+ ` ,
82+ [ tableName , schema ]
83+ ) ;
84+
85+ return res . rowCount > 0 ;
86+ }
8787
8888 async discoverFields ( resource ) {
8989
You can’t perform that action at this time.
0 commit comments