Skip to content

Commit

Permalink
Merge pull request #78 from PrefectHQ/hasura-metadata
Browse files Browse the repository at this point in the history
Use "up revision" to name hasura metadata files
  • Loading branch information
cicdw authored Sep 15, 2020
2 parents 8716003 + 3036892 commit 67a94f2
Show file tree
Hide file tree
Showing 10 changed files with 308 additions and 458 deletions.
20 changes: 20 additions & 0 deletions changes/pr78.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# An example changelog entry
#
# 1. Choose one (or more if a PR encompasses multiple changes) of the following headers:
# - feature
# - enhancement
# - fix
# - deprecation
# - breaking (for breaking changes)
# - migration (for database migrations)
#
# 2. Fill in one (or more) bullet points under the heading, describing the change.
# Markdown syntax may be used.
#
# 3. If you would like to be credited as helping with this release, add a
# contributor section with your name and github username.
#
# Here's an example of a PR that adds an enhancement

enhancement:
- "Hasura metadata archives use the most recent alembic revision ID - [#78](https://github.com/PrefectHQ/server/pull/78)"

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -234,4 +234,3 @@ tables:
name: message
schema: public
version: 2

Original file line number Diff line number Diff line change
@@ -1,169 +1,237 @@
version: 2
functions:
- function:
name: downstream_tasks
schema: utility
- function:
name: upstream_tasks
schema: utility
tables:
- table:
schema: public
name: cloud_hook
- table:
schema: public
name: edge
object_relationships:
- name: downstream_task
- array_relationships:
- name: downstream_edges
using:
foreign_key_constraint_on: downstream_task_id
foreign_key_constraint_on:
column: upstream_task_id
table:
name: edge
schema: public
- name: task_runs
using:
foreign_key_constraint_on:
column: task_id
table:
name: task_run
schema: public
- name: upstream_edges
using:
foreign_key_constraint_on:
column: downstream_task_id
table:
name: edge
schema: public
object_relationships:
- name: flow
using:
foreign_key_constraint_on: flow_id
- name: upstream_task
using:
foreign_key_constraint_on: upstream_task_id
- table:
table:
name: task
schema: public
name: flow
- array_relationships:
- name: edges
using:
foreign_key_constraint_on:
column: flow_id
table:
name: edge
schema: public
- name: flow_runs
using:
foreign_key_constraint_on:
column: flow_id
table:
name: flow_run
schema: public
- name: tasks
using:
foreign_key_constraint_on:
column: flow_id
table:
name: task
schema: public
object_relationships:
- name: flow_group
using:
foreign_key_constraint_on: flow_group_id
- name: project
using:
foreign_key_constraint_on: project_id
array_relationships:
- name: edges
- name: tenant
using:
foreign_key_constraint_on: tenant_id
table:
name: flow
schema: public
- array_relationships:
- name: flow_groups
using:
foreign_key_constraint_on:
column: flow_id
column: tenant_id
table:
name: flow_group
schema: public
name: edge
- name: flow_runs
- name: flows
using:
foreign_key_constraint_on:
column: flow_id
column: tenant_id
table:
name: flow
schema: public
name: flow_run
- name: tasks
- name: projects
using:
foreign_key_constraint_on:
column: flow_id
column: tenant_id
table:
name: project
schema: public
name: task
- table:
table:
name: tenant
schema: public
name: flow_group
array_relationships:
- array_relationships:
- name: flows
using:
foreign_key_constraint_on:
column: flow_group_id
table:
schema: public
name: flow
- table:
schema: public
object_relationships:
- name: tenant
using:
foreign_key_constraint_on: tenant_id
table:
name: flow_group
schema: public
name: flow_run
- array_relationships:
- name: flows
using:
foreign_key_constraint_on:
column: project_id
table:
name: flow
schema: public
object_relationships:
- name: current_state
- name: tenant
using:
foreign_key_constraint_on: state_id
- name: flow
foreign_key_constraint_on: tenant_id
table:
name: project
schema: public
- array_relationships:
- name: logs
using:
foreign_key_constraint_on: flow_id
array_relationships:
foreign_key_constraint_on:
column: flow_run_id
table:
name: log
schema: public
- name: states
using:
foreign_key_constraint_on:
column: flow_run_id
table:
schema: public
name: flow_run_state
schema: public
- name: task_runs
using:
foreign_key_constraint_on:
column: flow_run_id
table:
schema: public
name: task_run
- table:
schema: public
name: flow_run_state
schema: public
object_relationships:
- name: flow_run
- name: flow
using:
foreign_key_constraint_on: flow_run_id
- table:
schema: public
name: log
- table:
foreign_key_constraint_on: flow_id
- name: tenant
using:
foreign_key_constraint_on: tenant_id
table:
name: flow_run
schema: public
name: project
array_relationships:
- name: flows
- array_relationships:
- name: logs
using:
foreign_key_constraint_on:
column: project_id
column: task_run_id
table:
name: log
schema: public
name: flow
- table:
schema: public
name: task
object_relationships:
- name: flow
using:
foreign_key_constraint_on: flow_id
array_relationships:
- name: task_runs
- name: states
using:
foreign_key_constraint_on:
column: task_id
column: task_run_id
table:
name: task_run_state
schema: public
name: task_run
- table:
schema: public
name: task_run
object_relationships:
- name: current_state
using:
foreign_key_constraint_on: state_id
- name: flow_run
using:
foreign_key_constraint_on: flow_run_id
- name: task
using:
foreign_key_constraint_on: task_id
array_relationships:
- name: states
- name: tenant
using:
foreign_key_constraint_on:
column: task_run_id
table:
schema: public
name: task_run_state
- table:
foreign_key_constraint_on: tenant_id
table:
name: task_run
schema: public
name: task_run_state
object_relationships:
- name: task_run
- object_relationships:
- name: downstream_task
using:
foreign_key_constraint_on: task_run_id
- table:
schema: utility
name: traversal
object_relationships:
foreign_key_constraint_on: downstream_task_id
- name: flow
using:
foreign_key_constraint_on: flow_id
- name: upstream_task
using:
foreign_key_constraint_on: upstream_task_id
table:
name: edge
schema: public
- object_relationships:
- name: flow_run
using:
foreign_key_constraint_on: flow_run_id
table:
name: flow_run_state
schema: public
- object_relationships:
- name: task
using:
manual_configuration:
remote_table:
schema: public
name: task
column_mapping:
task_id: id
functions:
- function:
schema: utility
name: downstream_tasks
- function:
remote_table:
name: task
schema: public
table:
name: traversal
schema: utility
name: upstream_tasks
- object_relationships:
- name: task_run
using:
foreign_key_constraint_on: task_run_id
table:
name: task_run_state
schema: public
- table:
name: cloud_hook
schema: public
- table:
name: log
schema: public
- table:
name: message
schema: public
version: 2

Loading

0 comments on commit 67a94f2

Please sign in to comment.