File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 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(
1515export const policiesSql = await readFile ( join ( __dirname , 'policies.sql' ) , 'utf-8' )
1616export const primaryKeysSql = await readFile ( join ( __dirname , 'primary_keys.sql' ) , 'utf-8' )
1717export 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+ )
1922export const relationshipsOldSql = await readFile ( join ( __dirname , 'relationships_old.sql' ) , 'utf-8' )
2023export const rolesSql = await readFile ( join ( __dirname , 'roles.sql' ) , 'utf-8' )
2124export const schemasSql = await readFile ( join ( __dirname , 'schemas.sql' ) , 'utf-8' )
Original file line number Diff line number Diff line change 11-- Adapted from
22-- https://github.com/PostgREST/postgrest/blob/f9f0f79fa914ac00c11fbf7f4c558e14821e67e2/src/PostgREST/SchemaCache.hs#L722
33SELECT
4- traint .oid AS id,
54 traint .conname AS foreign_key_name,
65 ns1 .nspname AS schema,
76 tab .relname AS relation,
Original file line number Diff line number Diff line change @@ -197,7 +197,6 @@ export const postgresRelationshipOldSchema = Type.Object({
197197 target_column_name : Type . String ( ) ,
198198} )
199199export const postgresRelationshipSchema = Type . Object ( {
200- id : Type . Integer ( ) ,
201200 foreign_key_name : Type . String ( ) ,
202201 schema : Type . String ( ) ,
203202 relation : Type . String ( ) ,
You can’t perform that action at this time.
0 commit comments