From 73ec408dbe8f5f8b6879ca8252a7637cd469267e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Teemu=20M=C3=A4kinen?= Date: Mon, 18 Mar 2024 14:33:01 +0200 Subject: [PATCH] Directly read from the Tiamat database - Use the default database also as the metadata database - Create a direct connection to the Tiamat database - Track all public tables - Track all relevant parent -> child connections --- README.md | 6 ++ metadata/generic/databases/databases.yaml | 15 +++ .../generic/databases/stops/tables/readme.txt | 1 + metadata/hsl/databases/databases.yaml | 16 ++++ .../stops/tables/public_access_space.yaml | 35 +++++++ ...public_access_space_alternative_names.yaml | 7 ++ ...public_access_space_check_constraints.yaml | 3 + .../public_access_space_equipment_places.yaml | 7 ++ .../public_access_space_key_values.yaml | 7 ++ .../public_accessibility_assessment.yaml | 11 +++ ..._accessibility_assessment_limitations.yaml | 7 ++ .../public_accessibility_limitation.yaml | 3 + .../stops/tables/public_alternative_name.yaml | 3 + .../tables/public_boarding_position.yaml | 32 +++++++ ...c_boarding_position_alternative_names.yaml | 7 ++ ...c_boarding_position_check_constraints.yaml | 3 + ...ic_boarding_position_equipment_places.yaml | 7 ++ .../public_boarding_position_key_values.yaml | 7 ++ .../stops/tables/public_check_constraint.yaml | 3 + .../public_check_constraint_key_values.yaml | 3 + .../public_destination_display_view.yaml | 3 + .../stops/tables/public_equipment_place.yaml | 22 +++++ ...c_equipment_place_equipment_positions.yaml | 7 ++ .../public_equipment_place_key_values.yaml | 7 ++ .../tables/public_equipment_position.yaml | 15 +++ .../public_equipment_position_key_values.yaml | 7 ++ .../stops/tables/public_export_job.yaml | 3 + .../stops/tables/public_fare_zone.yaml | 29 ++++++ .../tables/public_fare_zone_key_values.yaml | 7 ++ .../tables/public_fare_zone_members.yaml | 7 ++ .../tables/public_fare_zone_neighbours.yaml | 7 ++ .../tables/public_geography_columns.yaml | 3 + .../stops/tables/public_geometry_columns.yaml | 3 + .../tables/public_group_of_stop_places.yaml | 25 +++++ ...roup_of_stop_places_alternative_names.yaml | 7 ++ ...ublic_group_of_stop_places_key_values.yaml | 7 ++ .../public_group_of_stop_places_members.yaml | 3 + .../tables/public_group_of_tariff_zones.yaml | 18 ++++ ...blic_group_of_tariff_zones_key_values.yaml | 7 ++ .../public_group_of_tariff_zones_members.yaml | 7 ++ .../stops/tables/public_id_generator.yaml | 3 + .../tables/public_installed_equipment.yaml | 3 + ...installed_equipment_version_structure.yaml | 11 +++ ...version_structure_installed_equipment.yaml | 10 ++ .../databases/stops/tables/public_level.yaml | 21 +++++ .../stops/tables/public_level_key_values.yaml | 7 ++ .../public_multilingual_string_entity.yaml | 3 + .../stops/tables/public_navigation_path.yaml | 3 + .../stops/tables/public_parking.yaml | 66 +++++++++++++ .../tables/public_parking_adjacent_sites.yaml | 3 + .../public_parking_alternative_names.yaml | 7 ++ .../stops/tables/public_parking_area.yaml | 45 +++++++++ ...public_parking_area_alternative_names.yaml | 7 ++ ...public_parking_area_check_constraints.yaml | 3 + .../public_parking_area_equipment_places.yaml | 7 ++ .../public_parking_area_key_values.yaml | 7 ++ .../stops/tables/public_parking_capacity.yaml | 3 + .../public_parking_equipment_places.yaml | 3 + .../tables/public_parking_key_values.yaml | 3 + .../tables/public_parking_parking_areas.yaml | 3 + ...ublic_parking_parking_payment_process.yaml | 3 + .../public_parking_parking_properties.yaml | 3 + .../public_parking_parking_vehicle_types.yaml | 3 + .../tables/public_parking_properties.yaml | 3 + ...parking_properties_parking_user_types.yaml | 3 + .../public_parking_properties_spaces.yaml | 3 + .../stops/tables/public_path_junction.yaml | 3 + .../public_path_junction_key_values.yaml | 3 + .../stops/tables/public_path_link.yaml | 3 + .../stops/tables/public_path_link_end.yaml | 3 + .../tables/public_path_link_key_values.yaml | 3 + .../tables/public_persistable_polygon.yaml | 3 + .../tables/public_purpose_of_grouping.yaml | 3 + ...public_purpose_of_grouping_key_values.yaml | 3 + .../databases/stops/tables/public_quay.yaml | 42 +++++++++ .../tables/public_quay_alternative_names.yaml | 7 ++ .../public_quay_boarding_positions.yaml | 7 ++ .../tables/public_quay_check_constraints.yaml | 3 + .../tables/public_quay_equipment_places.yaml | 7 ++ .../stops/tables/public_quay_key_values.yaml | 7 ++ .../stops/tables/public_schema_version.yaml | 3 + .../stops/tables/public_spatial_ref_sys.yaml | 3 + .../stops/tables/public_stop_place.yaml | 73 ++++++++++++++ .../public_stop_place_access_spaces.yaml | 7 ++ .../public_stop_place_adjacent_sites.yaml | 3 + .../public_stop_place_alternative_names.yaml | 7 ++ .../tables/public_stop_place_children.yaml | 7 ++ .../public_stop_place_equipment_places.yaml | 7 ++ .../tables/public_stop_place_key_values.yaml | 7 ++ .../stops/tables/public_stop_place_quays.yaml | 7 ++ .../public_stop_place_tariff_zones.yaml | 3 + .../databases/stops/tables/public_tag.yaml | 3 + .../stops/tables/public_tariff_zone.yaml | 15 +++ .../tables/public_tariff_zone_key_values.yaml | 7 ++ .../tables/public_topographic_place.yaml | 15 +++ .../public_topographic_place_key_values.yaml | 7 ++ .../databases/stops/tables/public_value.yaml | 11 +++ .../stops/tables/public_value_items.yaml | 7 ++ .../hsl/databases/stops/tables/tables.yaml | 94 +++++++++++++++++++ migrations/generic/metadata/readme.txt | 3 + migrations/generic/stops/readme.txt | 3 + scripts/docker-entrypoint.sh | 3 + 102 files changed, 1005 insertions(+) create mode 100644 metadata/generic/databases/stops/tables/readme.txt create mode 100644 metadata/hsl/databases/databases.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_access_space.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_access_space_alternative_names.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_access_space_check_constraints.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_access_space_equipment_places.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_access_space_key_values.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_accessibility_assessment.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_accessibility_assessment_limitations.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_accessibility_limitation.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_alternative_name.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_boarding_position.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_boarding_position_alternative_names.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_boarding_position_check_constraints.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_boarding_position_equipment_places.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_boarding_position_key_values.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_check_constraint.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_check_constraint_key_values.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_destination_display_view.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_equipment_place.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_equipment_place_equipment_positions.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_equipment_place_key_values.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_equipment_position.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_equipment_position_key_values.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_export_job.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_fare_zone.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_fare_zone_key_values.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_fare_zone_members.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_fare_zone_neighbours.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_geography_columns.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_geometry_columns.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_group_of_stop_places.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_group_of_stop_places_alternative_names.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_group_of_stop_places_key_values.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_group_of_stop_places_members.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_group_of_tariff_zones.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_group_of_tariff_zones_key_values.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_group_of_tariff_zones_members.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_id_generator.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_installed_equipment.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_installed_equipment_version_structure.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_installed_equipment_version_structure_installed_equipment.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_level.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_level_key_values.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_multilingual_string_entity.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_navigation_path.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_parking.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_parking_adjacent_sites.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_parking_alternative_names.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_parking_area.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_parking_area_alternative_names.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_parking_area_check_constraints.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_parking_area_equipment_places.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_parking_area_key_values.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_parking_capacity.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_parking_equipment_places.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_parking_key_values.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_parking_parking_areas.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_parking_parking_payment_process.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_parking_parking_properties.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_parking_parking_vehicle_types.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_parking_properties.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_parking_properties_parking_user_types.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_parking_properties_spaces.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_path_junction.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_path_junction_key_values.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_path_link.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_path_link_end.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_path_link_key_values.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_persistable_polygon.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_purpose_of_grouping.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_purpose_of_grouping_key_values.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_quay.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_quay_alternative_names.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_quay_boarding_positions.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_quay_check_constraints.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_quay_equipment_places.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_quay_key_values.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_schema_version.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_spatial_ref_sys.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_stop_place.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_stop_place_access_spaces.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_stop_place_adjacent_sites.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_stop_place_alternative_names.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_stop_place_children.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_stop_place_equipment_places.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_stop_place_key_values.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_stop_place_quays.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_stop_place_tariff_zones.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_tag.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_tariff_zone.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_tariff_zone_key_values.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_topographic_place.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_topographic_place_key_values.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_value.yaml create mode 100644 metadata/hsl/databases/stops/tables/public_value_items.yaml create mode 100644 metadata/hsl/databases/stops/tables/tables.yaml create mode 100644 migrations/generic/metadata/readme.txt create mode 100644 migrations/generic/stops/readme.txt diff --git a/README.md b/README.md index 23fce0b9..48a71242 100644 --- a/README.md +++ b/README.md @@ -501,6 +501,12 @@ Our Docker image expects the following secrets to be bound to the container: | db-jore3importer-username | Name of the sql user that is used by the jore3 importer service | | db-timetables-api-username | Name of the sql user that is used by the timetables API service | +Additionally, when using HSL schema, the following secrets should be bound: + +| Secret file | Description | +| -------------- | ---------------------------------------------- | +| db-tiamat-name | Name of the logical database for stop registry | + ### Use of the Docker image The Docker image expects the following values for the following environment diff --git a/metadata/generic/databases/databases.yaml b/metadata/generic/databases/databases.yaml index ac270b99..48015cb7 100644 --- a/metadata/generic/databases/databases.yaml +++ b/metadata/generic/databases/databases.yaml @@ -1,3 +1,18 @@ +- name: metadata + kind: postgres + configuration: + connection_info: + database_url: + from_env: HASURA_GRAPHQL_METADATA_DATABASE_URL + isolation_level: serializable + pool_settings: + connection_lifetime: 600 + idle_timeout: 180 + max_connections: 50 + retries: 1 + use_prepared_statements: true + tables: [] + functions: [] - name: default kind: postgres configuration: diff --git a/metadata/generic/databases/stops/tables/readme.txt b/metadata/generic/databases/stops/tables/readme.txt new file mode 100644 index 00000000..b83d1831 --- /dev/null +++ b/metadata/generic/databases/stops/tables/readme.txt @@ -0,0 +1 @@ +This directory exists so the merge script will not fail due to non-existing directory. \ No newline at end of file diff --git a/metadata/hsl/databases/databases.yaml b/metadata/hsl/databases/databases.yaml new file mode 100644 index 00000000..51efefaf --- /dev/null +++ b/metadata/hsl/databases/databases.yaml @@ -0,0 +1,16 @@ +- name: stops + kind: postgres + configuration: + connection_info: + database_url: + from_env: HASURA_TIAMAT_DATABASE_URL + isolation_level: serializable + use_prepared_statements: false + customization: + naming_convention: hasura-default + root_fields: + namespace: stops_database + prefix: stops_database_ + type_names: + prefix: stops_database_ + tables: "!include stops/tables/tables.yaml" diff --git a/metadata/hsl/databases/stops/tables/public_access_space.yaml b/metadata/hsl/databases/stops/tables/public_access_space.yaml new file mode 100644 index 00000000..f40b8271 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_access_space.yaml @@ -0,0 +1,35 @@ +table: + name: access_space + schema: public +object_relationships: + - name: accessibility_assessment + using: + foreign_key_constraint_on: accessibility_assessment_id + - name: installed_equipment_version_structure + using: + foreign_key_constraint_on: place_equipments_id + - name: persistable_polygon + using: + foreign_key_constraint_on: polygon_id +array_relationships: + - name: access_space_alternative_names + using: + foreign_key_constraint_on: + column: access_space_id + table: + name: access_space_alternative_names + schema: public + - name: access_space_equipment_places + using: + foreign_key_constraint_on: + column: access_space_id + table: + name: access_space_equipment_places + schema: public + - name: access_space_key_values + using: + foreign_key_constraint_on: + column: access_space_id + table: + name: access_space_key_values + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_access_space_alternative_names.yaml b/metadata/hsl/databases/stops/tables/public_access_space_alternative_names.yaml new file mode 100644 index 00000000..b1f16313 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_access_space_alternative_names.yaml @@ -0,0 +1,7 @@ +table: + name: access_space_alternative_names + schema: public +object_relationships: + - name: alternative_name + using: + foreign_key_constraint_on: alternative_names_id diff --git a/metadata/hsl/databases/stops/tables/public_access_space_check_constraints.yaml b/metadata/hsl/databases/stops/tables/public_access_space_check_constraints.yaml new file mode 100644 index 00000000..820d7dc9 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_access_space_check_constraints.yaml @@ -0,0 +1,3 @@ +table: + name: access_space_check_constraints + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_access_space_equipment_places.yaml b/metadata/hsl/databases/stops/tables/public_access_space_equipment_places.yaml new file mode 100644 index 00000000..fd0c39da --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_access_space_equipment_places.yaml @@ -0,0 +1,7 @@ +table: + name: access_space_equipment_places + schema: public +object_relationships: + - name: equipment_place + using: + foreign_key_constraint_on: equipment_places_id diff --git a/metadata/hsl/databases/stops/tables/public_access_space_key_values.yaml b/metadata/hsl/databases/stops/tables/public_access_space_key_values.yaml new file mode 100644 index 00000000..82ad965c --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_access_space_key_values.yaml @@ -0,0 +1,7 @@ +table: + name: access_space_key_values + schema: public +object_relationships: + - name: value + using: + foreign_key_constraint_on: key_values_id diff --git a/metadata/hsl/databases/stops/tables/public_accessibility_assessment.yaml b/metadata/hsl/databases/stops/tables/public_accessibility_assessment.yaml new file mode 100644 index 00000000..20014574 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_accessibility_assessment.yaml @@ -0,0 +1,11 @@ +table: + name: accessibility_assessment + schema: public +array_relationships: + - name: accessibility_assessment_limitations + using: + foreign_key_constraint_on: + column: accessibility_assessment_id + table: + name: accessibility_assessment_limitations + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_accessibility_assessment_limitations.yaml b/metadata/hsl/databases/stops/tables/public_accessibility_assessment_limitations.yaml new file mode 100644 index 00000000..684cdd0e --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_accessibility_assessment_limitations.yaml @@ -0,0 +1,7 @@ +table: + name: accessibility_assessment_limitations + schema: public +object_relationships: + - name: accessibility_limitation + using: + foreign_key_constraint_on: limitations_id diff --git a/metadata/hsl/databases/stops/tables/public_accessibility_limitation.yaml b/metadata/hsl/databases/stops/tables/public_accessibility_limitation.yaml new file mode 100644 index 00000000..b3de3494 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_accessibility_limitation.yaml @@ -0,0 +1,3 @@ +table: + name: accessibility_limitation + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_alternative_name.yaml b/metadata/hsl/databases/stops/tables/public_alternative_name.yaml new file mode 100644 index 00000000..14a6fe38 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_alternative_name.yaml @@ -0,0 +1,3 @@ +table: + name: alternative_name + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_boarding_position.yaml b/metadata/hsl/databases/stops/tables/public_boarding_position.yaml new file mode 100644 index 00000000..d5aca944 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_boarding_position.yaml @@ -0,0 +1,32 @@ +table: + name: boarding_position + schema: public +object_relationships: + - name: installed_equipment_version_structure + using: + foreign_key_constraint_on: place_equipments_id + - name: persistable_polygon + using: + foreign_key_constraint_on: polygon_id +array_relationships: + - name: boarding_position_alternative_names + using: + foreign_key_constraint_on: + column: boarding_position_id + table: + name: boarding_position_alternative_names + schema: public + - name: boarding_position_equipment_places + using: + foreign_key_constraint_on: + column: boarding_position_id + table: + name: boarding_position_equipment_places + schema: public + - name: boarding_position_key_values + using: + foreign_key_constraint_on: + column: boarding_position_id + table: + name: boarding_position_key_values + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_boarding_position_alternative_names.yaml b/metadata/hsl/databases/stops/tables/public_boarding_position_alternative_names.yaml new file mode 100644 index 00000000..3e06d52c --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_boarding_position_alternative_names.yaml @@ -0,0 +1,7 @@ +table: + name: boarding_position_alternative_names + schema: public +object_relationships: + - name: alternative_name + using: + foreign_key_constraint_on: alternative_names_id diff --git a/metadata/hsl/databases/stops/tables/public_boarding_position_check_constraints.yaml b/metadata/hsl/databases/stops/tables/public_boarding_position_check_constraints.yaml new file mode 100644 index 00000000..f7dd204e --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_boarding_position_check_constraints.yaml @@ -0,0 +1,3 @@ +table: + name: boarding_position_check_constraints + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_boarding_position_equipment_places.yaml b/metadata/hsl/databases/stops/tables/public_boarding_position_equipment_places.yaml new file mode 100644 index 00000000..cb9fe567 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_boarding_position_equipment_places.yaml @@ -0,0 +1,7 @@ +table: + name: boarding_position_equipment_places + schema: public +object_relationships: + - name: equipment_place + using: + foreign_key_constraint_on: equipment_places_id diff --git a/metadata/hsl/databases/stops/tables/public_boarding_position_key_values.yaml b/metadata/hsl/databases/stops/tables/public_boarding_position_key_values.yaml new file mode 100644 index 00000000..06330dd9 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_boarding_position_key_values.yaml @@ -0,0 +1,7 @@ +table: + name: boarding_position_key_values + schema: public +object_relationships: + - name: value + using: + foreign_key_constraint_on: key_values_id diff --git a/metadata/hsl/databases/stops/tables/public_check_constraint.yaml b/metadata/hsl/databases/stops/tables/public_check_constraint.yaml new file mode 100644 index 00000000..f8c1047b --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_check_constraint.yaml @@ -0,0 +1,3 @@ +table: + name: check_constraint + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_check_constraint_key_values.yaml b/metadata/hsl/databases/stops/tables/public_check_constraint_key_values.yaml new file mode 100644 index 00000000..ddf1f883 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_check_constraint_key_values.yaml @@ -0,0 +1,3 @@ +table: + name: check_constraint_key_values + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_destination_display_view.yaml b/metadata/hsl/databases/stops/tables/public_destination_display_view.yaml new file mode 100644 index 00000000..8ca1668a --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_destination_display_view.yaml @@ -0,0 +1,3 @@ +table: + name: destination_display_view + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_equipment_place.yaml b/metadata/hsl/databases/stops/tables/public_equipment_place.yaml new file mode 100644 index 00000000..406dd885 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_equipment_place.yaml @@ -0,0 +1,22 @@ +table: + name: equipment_place + schema: public +object_relationships: + - name: persistable_polygon + using: + foreign_key_constraint_on: polygon_id +array_relationships: + - name: equipment_place_equipment_positions + using: + foreign_key_constraint_on: + column: equipment_place_id + table: + name: equipment_place_equipment_positions + schema: public + - name: equipment_place_key_values + using: + foreign_key_constraint_on: + column: equipment_place_id + table: + name: equipment_place_key_values + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_equipment_place_equipment_positions.yaml b/metadata/hsl/databases/stops/tables/public_equipment_place_equipment_positions.yaml new file mode 100644 index 00000000..a3e963a1 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_equipment_place_equipment_positions.yaml @@ -0,0 +1,7 @@ +table: + name: equipment_place_equipment_positions + schema: public +object_relationships: + - name: equipment_position + using: + foreign_key_constraint_on: equipment_positions_id diff --git a/metadata/hsl/databases/stops/tables/public_equipment_place_key_values.yaml b/metadata/hsl/databases/stops/tables/public_equipment_place_key_values.yaml new file mode 100644 index 00000000..167fe90b --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_equipment_place_key_values.yaml @@ -0,0 +1,7 @@ +table: + name: equipment_place_key_values + schema: public +object_relationships: + - name: value + using: + foreign_key_constraint_on: key_values_id diff --git a/metadata/hsl/databases/stops/tables/public_equipment_position.yaml b/metadata/hsl/databases/stops/tables/public_equipment_position.yaml new file mode 100644 index 00000000..faa5f0e3 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_equipment_position.yaml @@ -0,0 +1,15 @@ +table: + name: equipment_position + schema: public +object_relationships: + - name: multilingual_string_entity + using: + foreign_key_constraint_on: description_id +array_relationships: + - name: equipment_position_key_values + using: + foreign_key_constraint_on: + column: equipment_position_id + table: + name: equipment_position_key_values + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_equipment_position_key_values.yaml b/metadata/hsl/databases/stops/tables/public_equipment_position_key_values.yaml new file mode 100644 index 00000000..a266c70c --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_equipment_position_key_values.yaml @@ -0,0 +1,7 @@ +table: + name: equipment_position_key_values + schema: public +object_relationships: + - name: value + using: + foreign_key_constraint_on: key_values_id diff --git a/metadata/hsl/databases/stops/tables/public_export_job.yaml b/metadata/hsl/databases/stops/tables/public_export_job.yaml new file mode 100644 index 00000000..2172d960 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_export_job.yaml @@ -0,0 +1,3 @@ +table: + name: export_job + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_fare_zone.yaml b/metadata/hsl/databases/stops/tables/public_fare_zone.yaml new file mode 100644 index 00000000..bef3075b --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_fare_zone.yaml @@ -0,0 +1,29 @@ +table: + name: fare_zone + schema: public +object_relationships: + - name: persistable_polygon + using: + foreign_key_constraint_on: polygon_id +array_relationships: + - name: fare_zone_key_values + using: + foreign_key_constraint_on: + column: fare_zone_id + table: + name: fare_zone_key_values + schema: public + - name: fare_zone_members + using: + foreign_key_constraint_on: + column: fare_zone_id + table: + name: fare_zone_members + schema: public + - name: fare_zone_neighbours + using: + foreign_key_constraint_on: + column: fare_zone_id + table: + name: fare_zone_neighbours + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_fare_zone_key_values.yaml b/metadata/hsl/databases/stops/tables/public_fare_zone_key_values.yaml new file mode 100644 index 00000000..d1c0b8ba --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_fare_zone_key_values.yaml @@ -0,0 +1,7 @@ +table: + name: fare_zone_key_values + schema: public +object_relationships: + - name: value + using: + foreign_key_constraint_on: key_values_id diff --git a/metadata/hsl/databases/stops/tables/public_fare_zone_members.yaml b/metadata/hsl/databases/stops/tables/public_fare_zone_members.yaml new file mode 100644 index 00000000..f1786bbe --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_fare_zone_members.yaml @@ -0,0 +1,7 @@ +table: + name: fare_zone_members + schema: public +object_relationships: + - name: fare_zone + using: + foreign_key_constraint_on: fare_zone_id diff --git a/metadata/hsl/databases/stops/tables/public_fare_zone_neighbours.yaml b/metadata/hsl/databases/stops/tables/public_fare_zone_neighbours.yaml new file mode 100644 index 00000000..0f63f2ce --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_fare_zone_neighbours.yaml @@ -0,0 +1,7 @@ +table: + name: fare_zone_neighbours + schema: public +object_relationships: + - name: fare_zone + using: + foreign_key_constraint_on: fare_zone_id diff --git a/metadata/hsl/databases/stops/tables/public_geography_columns.yaml b/metadata/hsl/databases/stops/tables/public_geography_columns.yaml new file mode 100644 index 00000000..41bc0f38 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_geography_columns.yaml @@ -0,0 +1,3 @@ +table: + name: geography_columns + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_geometry_columns.yaml b/metadata/hsl/databases/stops/tables/public_geometry_columns.yaml new file mode 100644 index 00000000..b7ec872e --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_geometry_columns.yaml @@ -0,0 +1,3 @@ +table: + name: geometry_columns + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_group_of_stop_places.yaml b/metadata/hsl/databases/stops/tables/public_group_of_stop_places.yaml new file mode 100644 index 00000000..f23b87b6 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_group_of_stop_places.yaml @@ -0,0 +1,25 @@ +table: + name: group_of_stop_places + schema: public +array_relationships: + - name: group_of_stop_places_alternative_names + using: + foreign_key_constraint_on: + column: group_of_stop_places_id + table: + name: group_of_stop_places_alternative_names + schema: public + - name: group_of_stop_places_key_values + using: + foreign_key_constraint_on: + column: group_of_stop_places_id + table: + name: group_of_stop_places_key_values + schema: public + - name: group_of_stop_places_members + using: + foreign_key_constraint_on: + column: group_of_stop_places_id + table: + name: group_of_stop_places_members + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_group_of_stop_places_alternative_names.yaml b/metadata/hsl/databases/stops/tables/public_group_of_stop_places_alternative_names.yaml new file mode 100644 index 00000000..67b888ce --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_group_of_stop_places_alternative_names.yaml @@ -0,0 +1,7 @@ +table: + name: group_of_stop_places_alternative_names + schema: public +object_relationships: + - name: alternative_name + using: + foreign_key_constraint_on: alternative_names_id diff --git a/metadata/hsl/databases/stops/tables/public_group_of_stop_places_key_values.yaml b/metadata/hsl/databases/stops/tables/public_group_of_stop_places_key_values.yaml new file mode 100644 index 00000000..2155ed87 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_group_of_stop_places_key_values.yaml @@ -0,0 +1,7 @@ +table: + name: group_of_stop_places_key_values + schema: public +object_relationships: + - name: value + using: + foreign_key_constraint_on: key_values_id diff --git a/metadata/hsl/databases/stops/tables/public_group_of_stop_places_members.yaml b/metadata/hsl/databases/stops/tables/public_group_of_stop_places_members.yaml new file mode 100644 index 00000000..478c665f --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_group_of_stop_places_members.yaml @@ -0,0 +1,3 @@ +table: + name: group_of_stop_places_members + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_group_of_tariff_zones.yaml b/metadata/hsl/databases/stops/tables/public_group_of_tariff_zones.yaml new file mode 100644 index 00000000..21f7df9f --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_group_of_tariff_zones.yaml @@ -0,0 +1,18 @@ +table: + name: group_of_tariff_zones + schema: public +array_relationships: + - name: group_of_tariff_zones_key_values + using: + foreign_key_constraint_on: + column: group_of_tariff_zones_id + table: + name: group_of_tariff_zones_key_values + schema: public + - name: group_of_tariff_zones_members + using: + foreign_key_constraint_on: + column: group_of_tariff_zones_id + table: + name: group_of_tariff_zones_members + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_group_of_tariff_zones_key_values.yaml b/metadata/hsl/databases/stops/tables/public_group_of_tariff_zones_key_values.yaml new file mode 100644 index 00000000..f7e56914 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_group_of_tariff_zones_key_values.yaml @@ -0,0 +1,7 @@ +table: + name: group_of_tariff_zones_key_values + schema: public +object_relationships: + - name: value + using: + foreign_key_constraint_on: key_values_id diff --git a/metadata/hsl/databases/stops/tables/public_group_of_tariff_zones_members.yaml b/metadata/hsl/databases/stops/tables/public_group_of_tariff_zones_members.yaml new file mode 100644 index 00000000..43b173bd --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_group_of_tariff_zones_members.yaml @@ -0,0 +1,7 @@ +table: + name: group_of_tariff_zones_members + schema: public +object_relationships: + - name: group_of_tariff_zone + using: + foreign_key_constraint_on: group_of_tariff_zones_id diff --git a/metadata/hsl/databases/stops/tables/public_id_generator.yaml b/metadata/hsl/databases/stops/tables/public_id_generator.yaml new file mode 100644 index 00000000..4756f8b4 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_id_generator.yaml @@ -0,0 +1,3 @@ +table: + name: id_generator + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_installed_equipment.yaml b/metadata/hsl/databases/stops/tables/public_installed_equipment.yaml new file mode 100644 index 00000000..e9d2bd4a --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_installed_equipment.yaml @@ -0,0 +1,3 @@ +table: + name: installed_equipment + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_installed_equipment_version_structure.yaml b/metadata/hsl/databases/stops/tables/public_installed_equipment_version_structure.yaml new file mode 100644 index 00000000..5e23db80 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_installed_equipment_version_structure.yaml @@ -0,0 +1,11 @@ +table: + name: installed_equipment_version_structure + schema: public +array_relationships: + - name: installed_equipment_version_structure_installed_equipments + using: + foreign_key_constraint_on: + column: place_equipment_id + table: + name: installed_equipment_version_structure_installed_equipment + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_installed_equipment_version_structure_installed_equipment.yaml b/metadata/hsl/databases/stops/tables/public_installed_equipment_version_structure_installed_equipment.yaml new file mode 100644 index 00000000..4caff2a0 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_installed_equipment_version_structure_installed_equipment.yaml @@ -0,0 +1,10 @@ +table: + name: installed_equipment_version_structure_installed_equipment + schema: public +object_relationships: + - name: installedEquipmentVersionStructureByPlaceEquipmentId + using: + foreign_key_constraint_on: place_equipment_id + - name: installed_equipment_version_structure + using: + foreign_key_constraint_on: installed_equipment_id diff --git a/metadata/hsl/databases/stops/tables/public_level.yaml b/metadata/hsl/databases/stops/tables/public_level.yaml new file mode 100644 index 00000000..a5ec50b8 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_level.yaml @@ -0,0 +1,21 @@ +table: + name: level + schema: public +object_relationships: + - name: multilingualStringEntityByNameId + using: + foreign_key_constraint_on: name_id + - name: multilingualStringEntityByShortNameId + using: + foreign_key_constraint_on: short_name_id + - name: multilingual_string_entity + using: + foreign_key_constraint_on: description_id +array_relationships: + - name: level_key_values + using: + foreign_key_constraint_on: + column: level_id + table: + name: level_key_values + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_level_key_values.yaml b/metadata/hsl/databases/stops/tables/public_level_key_values.yaml new file mode 100644 index 00000000..1d9fd707 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_level_key_values.yaml @@ -0,0 +1,7 @@ +table: + name: level_key_values + schema: public +object_relationships: + - name: value + using: + foreign_key_constraint_on: key_values_id diff --git a/metadata/hsl/databases/stops/tables/public_multilingual_string_entity.yaml b/metadata/hsl/databases/stops/tables/public_multilingual_string_entity.yaml new file mode 100644 index 00000000..bceea435 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_multilingual_string_entity.yaml @@ -0,0 +1,3 @@ +table: + name: multilingual_string_entity + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_navigation_path.yaml b/metadata/hsl/databases/stops/tables/public_navigation_path.yaml new file mode 100644 index 00000000..70a9ef59 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_navigation_path.yaml @@ -0,0 +1,3 @@ +table: + name: navigation_path + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_parking.yaml b/metadata/hsl/databases/stops/tables/public_parking.yaml new file mode 100644 index 00000000..969f7354 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_parking.yaml @@ -0,0 +1,66 @@ +table: + name: parking + schema: public +object_relationships: + - name: accessibility_assessment + using: + foreign_key_constraint_on: accessibility_assessment_id + - name: installed_equipment_version_structure + using: + foreign_key_constraint_on: place_equipments_id + - name: persistable_polygon + using: + foreign_key_constraint_on: polygon_id + - name: topographic_place + using: + foreign_key_constraint_on: topographic_place_id +array_relationships: + - name: parking_alternative_names + using: + foreign_key_constraint_on: + column: parking_id + table: + name: parking_alternative_names + schema: public + - name: parking_equipment_places + using: + foreign_key_constraint_on: + column: parking_id + table: + name: parking_equipment_places + schema: public + - name: parking_key_values + using: + foreign_key_constraint_on: + column: parking_id + table: + name: parking_key_values + schema: public + - name: parking_parking_areas + using: + foreign_key_constraint_on: + column: parking_id + table: + name: parking_parking_areas + schema: public + - name: parking_parking_payment_processes + using: + foreign_key_constraint_on: + column: parking_id + table: + name: parking_parking_payment_process + schema: public + - name: parking_parking_properties + using: + foreign_key_constraint_on: + column: parking_id + table: + name: parking_parking_properties + schema: public + - name: parking_parking_vehicle_types + using: + foreign_key_constraint_on: + column: parking_id + table: + name: parking_parking_vehicle_types + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_parking_adjacent_sites.yaml b/metadata/hsl/databases/stops/tables/public_parking_adjacent_sites.yaml new file mode 100644 index 00000000..d4ebcbd4 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_parking_adjacent_sites.yaml @@ -0,0 +1,3 @@ +table: + name: parking_adjacent_sites + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_parking_alternative_names.yaml b/metadata/hsl/databases/stops/tables/public_parking_alternative_names.yaml new file mode 100644 index 00000000..4f480f7a --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_parking_alternative_names.yaml @@ -0,0 +1,7 @@ +table: + name: parking_alternative_names + schema: public +object_relationships: + - name: alternative_name + using: + foreign_key_constraint_on: alternative_names_id diff --git a/metadata/hsl/databases/stops/tables/public_parking_area.yaml b/metadata/hsl/databases/stops/tables/public_parking_area.yaml new file mode 100644 index 00000000..9ac7511a --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_parking_area.yaml @@ -0,0 +1,45 @@ +table: + name: parking_area + schema: public +object_relationships: + - name: accessibility_assessment + using: + foreign_key_constraint_on: accessibility_assessment_id + - name: installed_equipment_version_structure + using: + foreign_key_constraint_on: place_equipments_id + - name: parking_parking_area + using: + foreign_key_constraint_on: + column: parking_areas_id + table: + name: parking_parking_areas + schema: public + - name: parking_property + using: + foreign_key_constraint_on: parking_properties_id + - name: persistable_polygon + using: + foreign_key_constraint_on: polygon_id +array_relationships: + - name: parking_area_alternative_names + using: + foreign_key_constraint_on: + column: parking_area_id + table: + name: parking_area_alternative_names + schema: public + - name: parking_area_equipment_places + using: + foreign_key_constraint_on: + column: parking_area_id + table: + name: parking_area_equipment_places + schema: public + - name: parking_area_key_values + using: + foreign_key_constraint_on: + column: parking_area_id + table: + name: parking_area_key_values + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_parking_area_alternative_names.yaml b/metadata/hsl/databases/stops/tables/public_parking_area_alternative_names.yaml new file mode 100644 index 00000000..5855ef40 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_parking_area_alternative_names.yaml @@ -0,0 +1,7 @@ +table: + name: parking_area_alternative_names + schema: public +object_relationships: + - name: alternative_name + using: + foreign_key_constraint_on: alternative_names_id diff --git a/metadata/hsl/databases/stops/tables/public_parking_area_check_constraints.yaml b/metadata/hsl/databases/stops/tables/public_parking_area_check_constraints.yaml new file mode 100644 index 00000000..5b65ea54 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_parking_area_check_constraints.yaml @@ -0,0 +1,3 @@ +table: + name: parking_area_check_constraints + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_parking_area_equipment_places.yaml b/metadata/hsl/databases/stops/tables/public_parking_area_equipment_places.yaml new file mode 100644 index 00000000..41108560 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_parking_area_equipment_places.yaml @@ -0,0 +1,7 @@ +table: + name: parking_area_equipment_places + schema: public +object_relationships: + - name: equipment_place + using: + foreign_key_constraint_on: equipment_places_id diff --git a/metadata/hsl/databases/stops/tables/public_parking_area_key_values.yaml b/metadata/hsl/databases/stops/tables/public_parking_area_key_values.yaml new file mode 100644 index 00000000..62728398 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_parking_area_key_values.yaml @@ -0,0 +1,7 @@ +table: + name: parking_area_key_values + schema: public +object_relationships: + - name: value + using: + foreign_key_constraint_on: key_values_id diff --git a/metadata/hsl/databases/stops/tables/public_parking_capacity.yaml b/metadata/hsl/databases/stops/tables/public_parking_capacity.yaml new file mode 100644 index 00000000..a8df1e18 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_parking_capacity.yaml @@ -0,0 +1,3 @@ +table: + name: parking_capacity + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_parking_equipment_places.yaml b/metadata/hsl/databases/stops/tables/public_parking_equipment_places.yaml new file mode 100644 index 00000000..9cdd223c --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_parking_equipment_places.yaml @@ -0,0 +1,3 @@ +table: + name: parking_equipment_places + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_parking_key_values.yaml b/metadata/hsl/databases/stops/tables/public_parking_key_values.yaml new file mode 100644 index 00000000..4ba9e3d7 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_parking_key_values.yaml @@ -0,0 +1,3 @@ +table: + name: parking_key_values + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_parking_parking_areas.yaml b/metadata/hsl/databases/stops/tables/public_parking_parking_areas.yaml new file mode 100644 index 00000000..ab5f8c6a --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_parking_parking_areas.yaml @@ -0,0 +1,3 @@ +table: + name: parking_parking_areas + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_parking_parking_payment_process.yaml b/metadata/hsl/databases/stops/tables/public_parking_parking_payment_process.yaml new file mode 100644 index 00000000..a3767338 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_parking_parking_payment_process.yaml @@ -0,0 +1,3 @@ +table: + name: parking_parking_payment_process + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_parking_parking_properties.yaml b/metadata/hsl/databases/stops/tables/public_parking_parking_properties.yaml new file mode 100644 index 00000000..74bfb3fb --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_parking_parking_properties.yaml @@ -0,0 +1,3 @@ +table: + name: parking_parking_properties + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_parking_parking_vehicle_types.yaml b/metadata/hsl/databases/stops/tables/public_parking_parking_vehicle_types.yaml new file mode 100644 index 00000000..cef5e83f --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_parking_parking_vehicle_types.yaml @@ -0,0 +1,3 @@ +table: + name: parking_parking_vehicle_types + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_parking_properties.yaml b/metadata/hsl/databases/stops/tables/public_parking_properties.yaml new file mode 100644 index 00000000..5073e39e --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_parking_properties.yaml @@ -0,0 +1,3 @@ +table: + name: parking_properties + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_parking_properties_parking_user_types.yaml b/metadata/hsl/databases/stops/tables/public_parking_properties_parking_user_types.yaml new file mode 100644 index 00000000..9848de72 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_parking_properties_parking_user_types.yaml @@ -0,0 +1,3 @@ +table: + name: parking_properties_parking_user_types + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_parking_properties_spaces.yaml b/metadata/hsl/databases/stops/tables/public_parking_properties_spaces.yaml new file mode 100644 index 00000000..5458fa08 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_parking_properties_spaces.yaml @@ -0,0 +1,3 @@ +table: + name: parking_properties_spaces + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_path_junction.yaml b/metadata/hsl/databases/stops/tables/public_path_junction.yaml new file mode 100644 index 00000000..01608e9f --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_path_junction.yaml @@ -0,0 +1,3 @@ +table: + name: path_junction + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_path_junction_key_values.yaml b/metadata/hsl/databases/stops/tables/public_path_junction_key_values.yaml new file mode 100644 index 00000000..21d561ea --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_path_junction_key_values.yaml @@ -0,0 +1,3 @@ +table: + name: path_junction_key_values + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_path_link.yaml b/metadata/hsl/databases/stops/tables/public_path_link.yaml new file mode 100644 index 00000000..9762e5b3 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_path_link.yaml @@ -0,0 +1,3 @@ +table: + name: path_link + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_path_link_end.yaml b/metadata/hsl/databases/stops/tables/public_path_link_end.yaml new file mode 100644 index 00000000..23fb730e --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_path_link_end.yaml @@ -0,0 +1,3 @@ +table: + name: path_link_end + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_path_link_key_values.yaml b/metadata/hsl/databases/stops/tables/public_path_link_key_values.yaml new file mode 100644 index 00000000..bf0c6f6f --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_path_link_key_values.yaml @@ -0,0 +1,3 @@ +table: + name: path_link_key_values + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_persistable_polygon.yaml b/metadata/hsl/databases/stops/tables/public_persistable_polygon.yaml new file mode 100644 index 00000000..e06ab094 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_persistable_polygon.yaml @@ -0,0 +1,3 @@ +table: + name: persistable_polygon + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_purpose_of_grouping.yaml b/metadata/hsl/databases/stops/tables/public_purpose_of_grouping.yaml new file mode 100644 index 00000000..a00f88b7 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_purpose_of_grouping.yaml @@ -0,0 +1,3 @@ +table: + name: purpose_of_grouping + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_purpose_of_grouping_key_values.yaml b/metadata/hsl/databases/stops/tables/public_purpose_of_grouping_key_values.yaml new file mode 100644 index 00000000..b226e851 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_purpose_of_grouping_key_values.yaml @@ -0,0 +1,3 @@ +table: + name: purpose_of_grouping_key_values + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_quay.yaml b/metadata/hsl/databases/stops/tables/public_quay.yaml new file mode 100644 index 00000000..e7a68c74 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_quay.yaml @@ -0,0 +1,42 @@ +table: + name: quay + schema: public +object_relationships: + - name: accessibility_assessment + using: + foreign_key_constraint_on: accessibility_assessment_id + - name: installed_equipment_version_structure + using: + foreign_key_constraint_on: place_equipments_id + - name: persistable_polygon + using: + foreign_key_constraint_on: polygon_id +array_relationships: + - name: quay_alternative_names + using: + foreign_key_constraint_on: + column: quay_id + table: + name: quay_alternative_names + schema: public + - name: quay_boarding_positions + using: + foreign_key_constraint_on: + column: quay_id + table: + name: quay_boarding_positions + schema: public + - name: quay_equipment_places + using: + foreign_key_constraint_on: + column: quay_id + table: + name: quay_equipment_places + schema: public + - name: quay_key_values + using: + foreign_key_constraint_on: + column: quay_id + table: + name: quay_key_values + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_quay_alternative_names.yaml b/metadata/hsl/databases/stops/tables/public_quay_alternative_names.yaml new file mode 100644 index 00000000..fc0e6942 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_quay_alternative_names.yaml @@ -0,0 +1,7 @@ +table: + name: quay_alternative_names + schema: public +object_relationships: + - name: alternative_name + using: + foreign_key_constraint_on: alternative_names_id diff --git a/metadata/hsl/databases/stops/tables/public_quay_boarding_positions.yaml b/metadata/hsl/databases/stops/tables/public_quay_boarding_positions.yaml new file mode 100644 index 00000000..add8b506 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_quay_boarding_positions.yaml @@ -0,0 +1,7 @@ +table: + name: quay_boarding_positions + schema: public +object_relationships: + - name: boarding_position + using: + foreign_key_constraint_on: boarding_positions_id diff --git a/metadata/hsl/databases/stops/tables/public_quay_check_constraints.yaml b/metadata/hsl/databases/stops/tables/public_quay_check_constraints.yaml new file mode 100644 index 00000000..23ff5fe6 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_quay_check_constraints.yaml @@ -0,0 +1,3 @@ +table: + name: quay_check_constraints + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_quay_equipment_places.yaml b/metadata/hsl/databases/stops/tables/public_quay_equipment_places.yaml new file mode 100644 index 00000000..81aa1921 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_quay_equipment_places.yaml @@ -0,0 +1,7 @@ +table: + name: quay_equipment_places + schema: public +object_relationships: + - name: equipment_place + using: + foreign_key_constraint_on: equipment_places_id diff --git a/metadata/hsl/databases/stops/tables/public_quay_key_values.yaml b/metadata/hsl/databases/stops/tables/public_quay_key_values.yaml new file mode 100644 index 00000000..f61db6b3 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_quay_key_values.yaml @@ -0,0 +1,7 @@ +table: + name: quay_key_values + schema: public +object_relationships: + - name: value + using: + foreign_key_constraint_on: key_values_id diff --git a/metadata/hsl/databases/stops/tables/public_schema_version.yaml b/metadata/hsl/databases/stops/tables/public_schema_version.yaml new file mode 100644 index 00000000..346fe5e6 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_schema_version.yaml @@ -0,0 +1,3 @@ +table: + name: schema_version + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_spatial_ref_sys.yaml b/metadata/hsl/databases/stops/tables/public_spatial_ref_sys.yaml new file mode 100644 index 00000000..cd005a06 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_spatial_ref_sys.yaml @@ -0,0 +1,3 @@ +table: + name: spatial_ref_sys + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_stop_place.yaml b/metadata/hsl/databases/stops/tables/public_stop_place.yaml new file mode 100644 index 00000000..558ee596 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_stop_place.yaml @@ -0,0 +1,73 @@ +table: + name: stop_place + schema: public +object_relationships: + - name: accessibility_assessment + using: + foreign_key_constraint_on: accessibility_assessment_id + - name: installed_equipment_version_structure + using: + foreign_key_constraint_on: place_equipments_id + - name: persistable_polygon + using: + foreign_key_constraint_on: polygon_id + - name: stop_place_child + using: + foreign_key_constraint_on: + column: children_id + table: + name: stop_place_children + schema: public + - name: topographic_place + using: + foreign_key_constraint_on: topographic_place_id +array_relationships: + - name: stop_place_access_spaces + using: + foreign_key_constraint_on: + column: stop_place_id + table: + name: stop_place_access_spaces + schema: public + - name: stop_place_alternative_names + using: + foreign_key_constraint_on: + column: stop_place_id + table: + name: stop_place_alternative_names + schema: public + - name: stop_place_children + using: + foreign_key_constraint_on: + column: stop_place_id + table: + name: stop_place_children + schema: public + - name: stop_place_equipment_places + using: + foreign_key_constraint_on: + column: stop_place_id + table: + name: stop_place_equipment_places + schema: public + - name: stop_place_key_values + using: + foreign_key_constraint_on: + column: stop_place_id + table: + name: stop_place_key_values + schema: public + - name: stop_place_quays + using: + foreign_key_constraint_on: + column: stop_place_id + table: + name: stop_place_quays + schema: public + - name: stop_place_tariff_zones + using: + foreign_key_constraint_on: + column: stop_place_id + table: + name: stop_place_tariff_zones + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_stop_place_access_spaces.yaml b/metadata/hsl/databases/stops/tables/public_stop_place_access_spaces.yaml new file mode 100644 index 00000000..b2207ac2 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_stop_place_access_spaces.yaml @@ -0,0 +1,7 @@ +table: + name: stop_place_access_spaces + schema: public +object_relationships: + - name: access_space + using: + foreign_key_constraint_on: access_spaces_id diff --git a/metadata/hsl/databases/stops/tables/public_stop_place_adjacent_sites.yaml b/metadata/hsl/databases/stops/tables/public_stop_place_adjacent_sites.yaml new file mode 100644 index 00000000..ca85290f --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_stop_place_adjacent_sites.yaml @@ -0,0 +1,3 @@ +table: + name: stop_place_adjacent_sites + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_stop_place_alternative_names.yaml b/metadata/hsl/databases/stops/tables/public_stop_place_alternative_names.yaml new file mode 100644 index 00000000..8363f4f8 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_stop_place_alternative_names.yaml @@ -0,0 +1,7 @@ +table: + name: stop_place_alternative_names + schema: public +object_relationships: + - name: alternative_name + using: + foreign_key_constraint_on: alternative_names_id diff --git a/metadata/hsl/databases/stops/tables/public_stop_place_children.yaml b/metadata/hsl/databases/stops/tables/public_stop_place_children.yaml new file mode 100644 index 00000000..84c4dcab --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_stop_place_children.yaml @@ -0,0 +1,7 @@ +table: + name: stop_place_children + schema: public +object_relationships: + - name: stop_place + using: + foreign_key_constraint_on: children_id diff --git a/metadata/hsl/databases/stops/tables/public_stop_place_equipment_places.yaml b/metadata/hsl/databases/stops/tables/public_stop_place_equipment_places.yaml new file mode 100644 index 00000000..c5b74537 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_stop_place_equipment_places.yaml @@ -0,0 +1,7 @@ +table: + name: stop_place_equipment_places + schema: public +object_relationships: + - name: equipment_place + using: + foreign_key_constraint_on: equipment_places_id diff --git a/metadata/hsl/databases/stops/tables/public_stop_place_key_values.yaml b/metadata/hsl/databases/stops/tables/public_stop_place_key_values.yaml new file mode 100644 index 00000000..578d582c --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_stop_place_key_values.yaml @@ -0,0 +1,7 @@ +table: + name: stop_place_key_values + schema: public +object_relationships: + - name: value + using: + foreign_key_constraint_on: key_values_id diff --git a/metadata/hsl/databases/stops/tables/public_stop_place_quays.yaml b/metadata/hsl/databases/stops/tables/public_stop_place_quays.yaml new file mode 100644 index 00000000..94e59126 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_stop_place_quays.yaml @@ -0,0 +1,7 @@ +table: + name: stop_place_quays + schema: public +object_relationships: + - name: quay + using: + foreign_key_constraint_on: quays_id diff --git a/metadata/hsl/databases/stops/tables/public_stop_place_tariff_zones.yaml b/metadata/hsl/databases/stops/tables/public_stop_place_tariff_zones.yaml new file mode 100644 index 00000000..60d651be --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_stop_place_tariff_zones.yaml @@ -0,0 +1,3 @@ +table: + name: stop_place_tariff_zones + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_tag.yaml b/metadata/hsl/databases/stops/tables/public_tag.yaml new file mode 100644 index 00000000..30922b32 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_tag.yaml @@ -0,0 +1,3 @@ +table: + name: tag + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_tariff_zone.yaml b/metadata/hsl/databases/stops/tables/public_tariff_zone.yaml new file mode 100644 index 00000000..1ebdb9ac --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_tariff_zone.yaml @@ -0,0 +1,15 @@ +table: + name: tariff_zone + schema: public +object_relationships: + - name: persistable_polygon + using: + foreign_key_constraint_on: polygon_id +array_relationships: + - name: tariff_zone_key_values + using: + foreign_key_constraint_on: + column: tariff_zone_id + table: + name: tariff_zone_key_values + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_tariff_zone_key_values.yaml b/metadata/hsl/databases/stops/tables/public_tariff_zone_key_values.yaml new file mode 100644 index 00000000..36bd8109 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_tariff_zone_key_values.yaml @@ -0,0 +1,7 @@ +table: + name: tariff_zone_key_values + schema: public +object_relationships: + - name: value + using: + foreign_key_constraint_on: key_values_id diff --git a/metadata/hsl/databases/stops/tables/public_topographic_place.yaml b/metadata/hsl/databases/stops/tables/public_topographic_place.yaml new file mode 100644 index 00000000..7bca5186 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_topographic_place.yaml @@ -0,0 +1,15 @@ +table: + name: topographic_place + schema: public +object_relationships: + - name: persistable_polygon + using: + foreign_key_constraint_on: polygon_id +array_relationships: + - name: topographic_place_key_values + using: + foreign_key_constraint_on: + column: topographic_place_id + table: + name: topographic_place_key_values + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_topographic_place_key_values.yaml b/metadata/hsl/databases/stops/tables/public_topographic_place_key_values.yaml new file mode 100644 index 00000000..a45a80d7 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_topographic_place_key_values.yaml @@ -0,0 +1,7 @@ +table: + name: topographic_place_key_values + schema: public +object_relationships: + - name: value + using: + foreign_key_constraint_on: key_values_id diff --git a/metadata/hsl/databases/stops/tables/public_value.yaml b/metadata/hsl/databases/stops/tables/public_value.yaml new file mode 100644 index 00000000..1ff8ce74 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_value.yaml @@ -0,0 +1,11 @@ +table: + name: value + schema: public +array_relationships: + - name: value_items + using: + foreign_key_constraint_on: + column: value_id + table: + name: value_items + schema: public diff --git a/metadata/hsl/databases/stops/tables/public_value_items.yaml b/metadata/hsl/databases/stops/tables/public_value_items.yaml new file mode 100644 index 00000000..f5b09174 --- /dev/null +++ b/metadata/hsl/databases/stops/tables/public_value_items.yaml @@ -0,0 +1,7 @@ +table: + name: value_items + schema: public +object_relationships: + - name: value + using: + foreign_key_constraint_on: value_id diff --git a/metadata/hsl/databases/stops/tables/tables.yaml b/metadata/hsl/databases/stops/tables/tables.yaml new file mode 100644 index 00000000..037fab6c --- /dev/null +++ b/metadata/hsl/databases/stops/tables/tables.yaml @@ -0,0 +1,94 @@ +- "!include public_access_space.yaml" +- "!include public_access_space_alternative_names.yaml" +- "!include public_access_space_check_constraints.yaml" +- "!include public_access_space_equipment_places.yaml" +- "!include public_access_space_key_values.yaml" +- "!include public_accessibility_assessment.yaml" +- "!include public_accessibility_assessment_limitations.yaml" +- "!include public_accessibility_limitation.yaml" +- "!include public_alternative_name.yaml" +- "!include public_boarding_position.yaml" +- "!include public_boarding_position_alternative_names.yaml" +- "!include public_boarding_position_check_constraints.yaml" +- "!include public_boarding_position_equipment_places.yaml" +- "!include public_boarding_position_key_values.yaml" +- "!include public_check_constraint.yaml" +- "!include public_check_constraint_key_values.yaml" +- "!include public_destination_display_view.yaml" +- "!include public_equipment_place.yaml" +- "!include public_equipment_place_equipment_positions.yaml" +- "!include public_equipment_place_key_values.yaml" +- "!include public_equipment_position.yaml" +- "!include public_equipment_position_key_values.yaml" +- "!include public_export_job.yaml" +- "!include public_fare_zone.yaml" +- "!include public_fare_zone_key_values.yaml" +- "!include public_fare_zone_members.yaml" +- "!include public_fare_zone_neighbours.yaml" +- "!include public_geography_columns.yaml" +- "!include public_geometry_columns.yaml" +- "!include public_group_of_stop_places.yaml" +- "!include public_group_of_stop_places_alternative_names.yaml" +- "!include public_group_of_stop_places_key_values.yaml" +- "!include public_group_of_stop_places_members.yaml" +- "!include public_group_of_tariff_zones.yaml" +- "!include public_group_of_tariff_zones_key_values.yaml" +- "!include public_group_of_tariff_zones_members.yaml" +- "!include public_id_generator.yaml" +- "!include public_installed_equipment.yaml" +- "!include public_installed_equipment_version_structure.yaml" +- "!include public_installed_equipment_version_structure_installed_equipment.yaml" +- "!include public_level.yaml" +- "!include public_level_key_values.yaml" +- "!include public_multilingual_string_entity.yaml" +- "!include public_navigation_path.yaml" +- "!include public_parking.yaml" +- "!include public_parking_adjacent_sites.yaml" +- "!include public_parking_alternative_names.yaml" +- "!include public_parking_area.yaml" +- "!include public_parking_area_alternative_names.yaml" +- "!include public_parking_area_check_constraints.yaml" +- "!include public_parking_area_equipment_places.yaml" +- "!include public_parking_area_key_values.yaml" +- "!include public_parking_capacity.yaml" +- "!include public_parking_equipment_places.yaml" +- "!include public_parking_key_values.yaml" +- "!include public_parking_parking_areas.yaml" +- "!include public_parking_parking_payment_process.yaml" +- "!include public_parking_parking_properties.yaml" +- "!include public_parking_parking_vehicle_types.yaml" +- "!include public_parking_properties.yaml" +- "!include public_parking_properties_parking_user_types.yaml" +- "!include public_parking_properties_spaces.yaml" +- "!include public_path_junction.yaml" +- "!include public_path_junction_key_values.yaml" +- "!include public_path_link.yaml" +- "!include public_path_link_end.yaml" +- "!include public_path_link_key_values.yaml" +- "!include public_persistable_polygon.yaml" +- "!include public_purpose_of_grouping.yaml" +- "!include public_purpose_of_grouping_key_values.yaml" +- "!include public_quay.yaml" +- "!include public_quay_alternative_names.yaml" +- "!include public_quay_boarding_positions.yaml" +- "!include public_quay_check_constraints.yaml" +- "!include public_quay_equipment_places.yaml" +- "!include public_quay_key_values.yaml" +- "!include public_schema_version.yaml" +- "!include public_spatial_ref_sys.yaml" +- "!include public_stop_place.yaml" +- "!include public_stop_place_access_spaces.yaml" +- "!include public_stop_place_adjacent_sites.yaml" +- "!include public_stop_place_alternative_names.yaml" +- "!include public_stop_place_children.yaml" +- "!include public_stop_place_equipment_places.yaml" +- "!include public_stop_place_key_values.yaml" +- "!include public_stop_place_quays.yaml" +- "!include public_stop_place_tariff_zones.yaml" +- "!include public_tag.yaml" +- "!include public_tariff_zone.yaml" +- "!include public_tariff_zone_key_values.yaml" +- "!include public_topographic_place.yaml" +- "!include public_topographic_place_key_values.yaml" +- "!include public_value.yaml" +- "!include public_value_items.yaml" diff --git a/migrations/generic/metadata/readme.txt b/migrations/generic/metadata/readme.txt new file mode 100644 index 00000000..7e8b1ab1 --- /dev/null +++ b/migrations/generic/metadata/readme.txt @@ -0,0 +1,3 @@ +This file exists to keep this directory in the git structure. +Hasura exptects this directory to exist or it will crash on startup. +Otherwise empty directory exptected. \ No newline at end of file diff --git a/migrations/generic/stops/readme.txt b/migrations/generic/stops/readme.txt new file mode 100644 index 00000000..7e8b1ab1 --- /dev/null +++ b/migrations/generic/stops/readme.txt @@ -0,0 +1,3 @@ +This file exists to keep this directory in the git structure. +Hasura exptects this directory to exist or it will crash on startup. +Otherwise empty directory exptected. \ No newline at end of file diff --git a/scripts/docker-entrypoint.sh b/scripts/docker-entrypoint.sh index 0aecf772..18579e7f 100755 --- a/scripts/docker-entrypoint.sh +++ b/scripts/docker-entrypoint.sh @@ -16,9 +16,12 @@ REPLACE_PLACEHOLDERS_SCRIPT='/app/scripts/replace-placeholders-in-sql-schema-mig /app/scripts/repeatable-migrations.sh # Pass on the execution to Hasura's own docker-entrypoint.sh file to (re)run the migrations +# Tiamat database is only needed in HSL schema, if it is not defined it should not stop the container from running HASURA_GRAPHQL_ADMIN_SECRET="$HASURA_ADMIN_SECRET" \ + HASURA_GRAPHQL_METADATA_DATABASE_URL="postgresql://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOSTNAME}:5432/${DB_NAME}" \ HASURA_GRAPHQL_DATABASE_URL="postgresql://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOSTNAME}:5432/${DB_NAME}" \ HASURA_TIMETABLES_DATABASE_URL="postgresql://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOSTNAME}:5432/${DB_TIMETABLES_NAME}" \ + HASURA_TIAMAT_DATABASE_URL="postgresql://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOSTNAME}:5432/${DB_TIAMAT_NAME:-undefined}" \ HASURA_TIAMAT_SCHEMA_URL="http://${TIAMAT_HOSTNAME:-jore4-tiamat}:${TIAMAT_PORT:-1888}/services/stop_places/graphql" \ HASURA_TIMETABLESAPI_URL="http://${TIMETABLESAPI_HOSTNAME:-jore4-timetablesapi}:${TIMETABLESAPI_PORT:-8080}" \ exec /bin/docker-entrypoint.sh "$@"