File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,10 @@ export const materializedViewsSql = await readFile(
15
15
export const policiesSql = await readFile ( join ( __dirname , 'policies.sql' ) , 'utf-8' )
16
16
export const primaryKeysSql = await readFile ( join ( __dirname , 'primary_keys.sql' ) , 'utf-8' )
17
17
export const publicationsSql = await readFile ( join ( __dirname , 'publications.sql' ) , 'utf-8' )
18
- export const tableRelationshipsSql = await readFile ( join ( __dirname , 'table_relationships.sql' ) , 'utf-8' )
18
+ export const tableRelationshipsSql = await readFile (
19
+ join ( __dirname , 'table_relationships.sql' ) ,
20
+ 'utf-8'
21
+ )
19
22
export const relationshipsOldSql = await readFile ( join ( __dirname , 'relationships_old.sql' ) , 'utf-8' )
20
23
export const rolesSql = await readFile ( join ( __dirname , 'roles.sql' ) , 'utf-8' )
21
24
export const schemasSql = await readFile ( join ( __dirname , 'schemas.sql' ) , 'utf-8' )
Original file line number Diff line number Diff line change 1
1
-- Adapted from
2
2
-- https://github.com/PostgREST/postgrest/blob/f9f0f79fa914ac00c11fbf7f4c558e14821e67e2/src/PostgREST/SchemaCache.hs#L722
3
3
SELECT
4
- traint .oid AS id,
5
4
traint .conname AS foreign_key_name,
6
5
ns1 .nspname AS schema,
7
6
tab .relname AS relation,
Original file line number Diff line number Diff line change @@ -197,7 +197,6 @@ export const postgresRelationshipOldSchema = Type.Object({
197
197
target_column_name : Type . String ( ) ,
198
198
} )
199
199
export const postgresRelationshipSchema = Type . Object ( {
200
- id : Type . Integer ( ) ,
201
200
foreign_key_name : Type . String ( ) ,
202
201
schema : Type . String ( ) ,
203
202
relation : Type . String ( ) ,
You can’t perform that action at this time.
0 commit comments