mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
Mention all src-rsr files in 'extra-source-files' section
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6341 GitOrigin-RevId: 90d9a43304ab48caa67f2d0267a821ebb51a362c
This commit is contained in:
parent
ea1ed79280
commit
10ae79173e
@ -21,10 +21,115 @@ extra-source-files:
|
||||
CURRENT_VERSION
|
||||
-- These are files referenced by functions from 'file-embed' which uses
|
||||
-- addDependentFile internally and has the same issue as above:
|
||||
src-rsr/mysql_table_metadata.sql
|
||||
src-rsr/mssql_table_metadata.sql
|
||||
src-rsr/catalog_versions.txt
|
||||
-- To easily rebuild this list, use the command 'find server/src-rsr -type f | sort'.
|
||||
src-rsr/catalog_version.txt
|
||||
src-rsr/catalog_versions.txt
|
||||
src-rsr/citus_table_metadata.sql
|
||||
src-rsr/clear_system_metadata.sql
|
||||
src-rsr/cockroach_table_metadata.sql
|
||||
src-rsr/console.html
|
||||
src-rsr/drop_pg_source.sql
|
||||
src-rsr/init_pg_source.sql
|
||||
src-rsr/initialise.sql
|
||||
src-rsr/introspection.json
|
||||
src-rsr/migrations/08_to_1.sql
|
||||
src-rsr/migrations/10_to_11.sql
|
||||
src-rsr/migrations/11_to_12.sql
|
||||
src-rsr/migrations/12_to_13.sql
|
||||
src-rsr/migrations/13_to_12.sql
|
||||
src-rsr/migrations/13_to_14.sql
|
||||
src-rsr/migrations/14_to_13.sql
|
||||
src-rsr/migrations/14_to_15.sql
|
||||
src-rsr/migrations/15_to_14.sql
|
||||
src-rsr/migrations/15_to_16.sql
|
||||
src-rsr/migrations/16_to_15.sql
|
||||
src-rsr/migrations/16_to_17.sql
|
||||
src-rsr/migrations/17_to_16.sql
|
||||
src-rsr/migrations/17_to_18.sql
|
||||
src-rsr/migrations/18_to_17.sql
|
||||
src-rsr/migrations/18_to_19.sql
|
||||
src-rsr/migrations/19_to_18.sql
|
||||
src-rsr/migrations/19_to_20.sql
|
||||
src-rsr/migrations/1_to_2.sql
|
||||
src-rsr/migrations/20_to_19.sql
|
||||
src-rsr/migrations/20_to_21.sql
|
||||
src-rsr/migrations/21_to_20.sql
|
||||
src-rsr/migrations/21_to_22.sql
|
||||
src-rsr/migrations/22_to_21.sql
|
||||
src-rsr/migrations/22_to_23.sql
|
||||
src-rsr/migrations/23_to_22.sql
|
||||
src-rsr/migrations/23_to_24.sql
|
||||
src-rsr/migrations/24_to_23.sql
|
||||
src-rsr/migrations/24_to_25.sql
|
||||
src-rsr/migrations/25_to_24.sql
|
||||
src-rsr/migrations/25_to_26.sql
|
||||
src-rsr/migrations/26_to_25.sql
|
||||
src-rsr/migrations/26_to_27.sql
|
||||
src-rsr/migrations/27_to_26.sql
|
||||
src-rsr/migrations/27_to_28.sql
|
||||
src-rsr/migrations/28_to_27.sql
|
||||
src-rsr/migrations/28_to_29.sql
|
||||
src-rsr/migrations/29_to_28.sql
|
||||
src-rsr/migrations/29_to_30.sql
|
||||
src-rsr/migrations/2_to_3.sql
|
||||
src-rsr/migrations/30_to_29.sql
|
||||
src-rsr/migrations/30_to_31.sql
|
||||
src-rsr/migrations/31_to_30.sql
|
||||
src-rsr/migrations/31_to_32.sql
|
||||
src-rsr/migrations/32_to_31.sql
|
||||
src-rsr/migrations/32_to_33.sql
|
||||
src-rsr/migrations/33_to_32.sql
|
||||
src-rsr/migrations/33_to_34.sql
|
||||
src-rsr/migrations/34_to_33.sql
|
||||
src-rsr/migrations/34_to_35.sql
|
||||
src-rsr/migrations/35_to_34.sql
|
||||
src-rsr/migrations/35_to_36.sql
|
||||
src-rsr/migrations/36_to_35.sql
|
||||
src-rsr/migrations/36_to_37.sql
|
||||
src-rsr/migrations/37_to_36.sql
|
||||
src-rsr/migrations/37_to_38.sql
|
||||
src-rsr/migrations/38_to_37.sql
|
||||
src-rsr/migrations/38_to_39.sql
|
||||
src-rsr/migrations/39_to_38.sql
|
||||
src-rsr/migrations/39_to_40.sql
|
||||
src-rsr/migrations/40_to_39.sql
|
||||
src-rsr/migrations/41_to_40.sql
|
||||
src-rsr/migrations/41_to_42.sql
|
||||
src-rsr/migrations/42_to_41.sql
|
||||
src-rsr/migrations/42_to_43.sql
|
||||
src-rsr/migrations/43_to_42.sql
|
||||
src-rsr/migrations/43_to_44.sql
|
||||
src-rsr/migrations/44_to_43.sql
|
||||
src-rsr/migrations/44_to_45.sql
|
||||
src-rsr/migrations/45_to_44.sql
|
||||
src-rsr/migrations/45_to_46.sql
|
||||
src-rsr/migrations/46_to_45.sql
|
||||
src-rsr/migrations/46_to_47.sql
|
||||
src-rsr/migrations/47_to_46.sql
|
||||
src-rsr/migrations/4_to_5.sql
|
||||
src-rsr/migrations/5_to_6.sql
|
||||
src-rsr/migrations/6_to_7.sql
|
||||
src-rsr/migrations/7_to_8.sql
|
||||
src-rsr/migrations/8_to_9.sql
|
||||
src-rsr/migrations/9_to_10.sql
|
||||
src-rsr/mssql/drop_mssql_source.sql
|
||||
src-rsr/mssql/init_mssql_source.sql
|
||||
src-rsr/mssql/mssql_delete_trigger.sql.shakespeare
|
||||
src-rsr/mssql/mssql_fetch_events.sql.shakespeare
|
||||
src-rsr/mssql/mssql_insert_trigger.sql.shakespeare
|
||||
src-rsr/mssql/mssql_source_migrations/1_to_2.sql
|
||||
src-rsr/mssql/mssql_source_migrations/2_to_3.sql
|
||||
src-rsr/mssql/mssql_table_metadata.sql
|
||||
src-rsr/mssql/mssql_unlock_events.sql.shakespeare
|
||||
src-rsr/mssql/mssql_update_trigger.sql.shakespeare
|
||||
src-rsr/mysql_table_metadata.sql
|
||||
src-rsr/pg_function_metadata.sql
|
||||
src-rsr/pg_source_migrations/0_to_1.sql
|
||||
src-rsr/pg_source_migrations/1_to_2.sql
|
||||
src-rsr/pg_source_migrations/2_to_3.sql
|
||||
src-rsr/pg_table_metadata.sql
|
||||
src-rsr/table_meta.sql
|
||||
src-rsr/trigger.sql.shakespeare
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
|
@ -1,269 +0,0 @@
|
||||
-- TODO (karthikeyan): This file should be removed, this file has been kept for now to help with
|
||||
-- the conflict resolution
|
||||
select
|
||||
json_build_object(
|
||||
'tables', tables.items :: json,
|
||||
'relations', relations.items,
|
||||
'permissions', permissions.items,
|
||||
'event_triggers', event_triggers.items,
|
||||
'remote_schemas', remote_schemas.items,
|
||||
'functions', functions.items,
|
||||
'allowlist_collections', allowlist.item,
|
||||
'computed_fields', computed_field.items,
|
||||
'custom_types', custom_types.item,
|
||||
'actions', actions.items,
|
||||
'remote_relationships', remote_relationships.items,
|
||||
'cron_triggers', cron_triggers.items,
|
||||
'remote_schema_permissions', remote_schema_permissions.items
|
||||
)
|
||||
from
|
||||
(
|
||||
select
|
||||
coalesce(jsonb_agg(
|
||||
jsonb_build_object(
|
||||
'name', jsonb_build_object(
|
||||
'name', ht.table_name,
|
||||
'schema', ht.table_schema
|
||||
),
|
||||
'is_enum', ht.is_enum,
|
||||
'is_system_defined', ht.is_system_defined,
|
||||
'configuration', ht.configuration,
|
||||
'info', t.info
|
||||
)
|
||||
), '[]') as items
|
||||
from hdb_catalog.hdb_table ht
|
||||
left join hdb_catalog.hdb_table_info_agg t using (table_schema, table_name)
|
||||
) as tables,
|
||||
(
|
||||
select
|
||||
coalesce(
|
||||
json_agg(
|
||||
json_build_object(
|
||||
'table',
|
||||
json_build_object(
|
||||
'schema', table_schema,
|
||||
'name', table_name
|
||||
),
|
||||
'rel_name', rel_name,
|
||||
'rel_type', rel_type,
|
||||
'def', rel_def :: json,
|
||||
'comment', comment
|
||||
)
|
||||
),
|
||||
'[]'
|
||||
) as items
|
||||
from
|
||||
hdb_catalog.hdb_relationship
|
||||
) as relations,
|
||||
(
|
||||
select
|
||||
coalesce(
|
||||
json_agg(
|
||||
json_build_object(
|
||||
'table',
|
||||
json_build_object(
|
||||
'schema', table_schema,
|
||||
'name', table_name
|
||||
),
|
||||
'role', role_name,
|
||||
'perm_type', perm_type,
|
||||
'def', perm_def :: json,
|
||||
'comment', comment
|
||||
)
|
||||
),
|
||||
'[]'
|
||||
) as items
|
||||
from
|
||||
hdb_catalog.hdb_permission
|
||||
) as permissions,
|
||||
(
|
||||
select
|
||||
coalesce(
|
||||
json_agg(
|
||||
json_build_object(
|
||||
'table',
|
||||
json_build_object(
|
||||
'schema', schema_name,
|
||||
'name', table_name
|
||||
),
|
||||
'name', name,
|
||||
'def', configuration :: json
|
||||
)
|
||||
),
|
||||
'[]'
|
||||
) as items
|
||||
from
|
||||
hdb_catalog.event_triggers
|
||||
) as event_triggers,
|
||||
(
|
||||
select
|
||||
coalesce(
|
||||
json_agg(
|
||||
json_build_object(
|
||||
'name',
|
||||
name,
|
||||
'definition', definition :: json,
|
||||
'comment', comment
|
||||
)
|
||||
),
|
||||
'[]'
|
||||
) as items
|
||||
from
|
||||
hdb_catalog.remote_schemas
|
||||
) as remote_schemas,
|
||||
(
|
||||
select
|
||||
coalesce(json_agg(q.info), '[]') as items
|
||||
from
|
||||
(
|
||||
select
|
||||
json_build_object(
|
||||
'function',
|
||||
json_build_object(
|
||||
'schema', hf.function_schema,
|
||||
'name', hf.function_name
|
||||
),
|
||||
'configuration', hf.configuration,
|
||||
'is_system_defined', hf.is_system_defined,
|
||||
'info', hf_agg.function_info
|
||||
) as info
|
||||
from
|
||||
hdb_catalog.hdb_function hf
|
||||
left join lateral
|
||||
(
|
||||
select coalesce(json_agg(function_info), '[]') as function_info
|
||||
from hdb_catalog.hdb_function_info_agg
|
||||
where function_name = hf.function_name
|
||||
and function_schema = hf.function_schema
|
||||
) hf_agg on 'true'
|
||||
) as q
|
||||
) as functions,
|
||||
(
|
||||
select
|
||||
coalesce(json_agg(hqc.collection_defn), '[]') as item
|
||||
from hdb_catalog.hdb_allowlist ha
|
||||
left outer join
|
||||
hdb_catalog.hdb_query_collection hqc
|
||||
on (hqc.collection_name = ha.collection_name)
|
||||
) as allowlist,
|
||||
(
|
||||
select
|
||||
coalesce(json_agg(
|
||||
json_build_object('computed_field', cc.computed_field,
|
||||
'function_info', fi.function_info
|
||||
)
|
||||
), '[]') as items
|
||||
from
|
||||
(
|
||||
select json_build_object(
|
||||
'table', jsonb_build_object('name', hcc.table_name,'schema', hcc.table_schema),
|
||||
'name', hcc.computed_field_name,
|
||||
'definition', hcc.definition,
|
||||
'comment', hcc.comment
|
||||
) as computed_field,
|
||||
hccf.function_name,
|
||||
hccf.function_schema
|
||||
from hdb_catalog.hdb_computed_field hcc
|
||||
left outer join
|
||||
hdb_catalog.hdb_computed_field_function hccf
|
||||
on ( hcc.table_name = hccf.table_name
|
||||
and hcc.table_schema = hccf.table_schema
|
||||
and hcc.computed_field_name = hccf.computed_field_name
|
||||
)
|
||||
) cc
|
||||
left join lateral
|
||||
(
|
||||
select coalesce(json_agg(function_info), '[]') as function_info
|
||||
from hdb_catalog.hdb_function_info_agg
|
||||
where function_name = cc.function_name and function_schema = cc.function_schema
|
||||
) fi on 'true'
|
||||
) as computed_field,
|
||||
(
|
||||
select
|
||||
json_build_object(
|
||||
'custom_types',
|
||||
coalesce((select custom_types from hdb_catalog.hdb_custom_types), '{}'),
|
||||
'pg_scalars', -- See Note [Postgres scalars in custom types]
|
||||
coalesce((select json_agg(typname) from pg_catalog.pg_type where typtype = 'b'), '[]')
|
||||
) as item
|
||||
) as custom_types,
|
||||
(
|
||||
select
|
||||
coalesce(
|
||||
json_agg(
|
||||
json_build_object(
|
||||
'name', ha.action_name,
|
||||
'definition', ha.action_defn :: json,
|
||||
'comment', ha.comment,
|
||||
'permissions', p.items
|
||||
)
|
||||
),
|
||||
'[]'
|
||||
) as items
|
||||
from
|
||||
hdb_catalog.hdb_action ha
|
||||
left join lateral
|
||||
(
|
||||
select
|
||||
coalesce(
|
||||
json_agg(
|
||||
json_build_object(
|
||||
'action', hap.action_name,
|
||||
'role', hap.role_name,
|
||||
'comment', hap.comment
|
||||
)
|
||||
),
|
||||
'[]'
|
||||
) as items
|
||||
from
|
||||
hdb_catalog.hdb_action_permission hap
|
||||
where hap.action_name = ha.action_name
|
||||
) p on 'true'
|
||||
) as actions,
|
||||
(
|
||||
select coalesce(json_agg(
|
||||
json_build_object(
|
||||
'name', remote_relationship_name,
|
||||
'table', json_build_object('schema', table_schema, 'name', table_name),
|
||||
'hasura_fields', definition -> 'hasura_fields',
|
||||
'remote_schema', definition -> 'remote_schema',
|
||||
'remote_field', definition -> 'remote_field'
|
||||
)
|
||||
),'[]') as items
|
||||
from hdb_catalog.hdb_remote_relationship
|
||||
) as remote_relationships,
|
||||
(
|
||||
select
|
||||
coalesce(
|
||||
json_agg(
|
||||
json_build_object(
|
||||
'name', name,
|
||||
'webhook_conf', webhook_conf :: json,
|
||||
'cron_schedule', cron_schedule,
|
||||
'payload', payload :: json,
|
||||
'retry_conf', retry_conf :: json,
|
||||
'header_conf', header_conf :: json,
|
||||
'comment', comment
|
||||
)
|
||||
),
|
||||
'[]'
|
||||
) as items
|
||||
from
|
||||
hdb_catalog.hdb_cron_triggers
|
||||
) as cron_triggers,
|
||||
(
|
||||
select
|
||||
coalesce(
|
||||
json_agg(
|
||||
json_build_object(
|
||||
'remote_schema', remote_schema_name,
|
||||
'role', role_name,
|
||||
'definition', definition :: json,
|
||||
'comment', comment
|
||||
)
|
||||
),
|
||||
'[]'
|
||||
) as items
|
||||
from
|
||||
hdb_catalog.hdb_remote_schema_permission
|
||||
) as remote_schema_permissions
|
Loading…
Reference in New Issue
Block a user