Skip to content

Commit

Permalink
Showing 3 changed files with 20 additions and 13 deletions.
24 changes: 12 additions & 12 deletions DEVELOPER_DOCUMENTATION.md
Original file line number Diff line number Diff line change
@@ -72,20 +72,20 @@ So as a hacky solution, there are two tables which act as materialized views to

### Dependencies

```
materialized_head_matrix table (is populated from...)
= head_matrix view
-> latest_matrix_for_consumer_version_and_provider_version view
-> materialized_matrix table (is populated from...)
= matrix view
-> verifications table
-> versions table
-> all_pact_publications view
-> pact_versions table
-> pact_publications table
-> pacticipants table
-> versions table
-> latest_verification_id_for_consumer_version_and_provider_version view
-> latest_pact_publication_revision_numbers view
-> latest_pact_publications
-> latest_pact_publications_by_consumer_versions
-> latest_pact_publication_ids_by_consumer_versions
-> all_pact_publications
-> versions, pacticipants, pact_publications, pact_versions
-> latest_verifications
-> latest_verification_numbers
-> versions
-> latest_tagged_pact_consumer_version_orders
-> latest_pact_publications_by_consumer_versions
```

### Useful to know stuff

4 changes: 3 additions & 1 deletion db/migrations/20180311_optimise_head_matrix.rb
Original file line number Diff line number Diff line change
@@ -16,7 +16,9 @@
)

# Add provider_version_order to original definition
# The most recent verification for each pact version
# The most recent verification for each pact_version
# provider_version column is DEPRECATED, use provider_version_number
# Think this can be replaced by latest_verification_id_for_pact_version_and_provider_version?
v = :verifications
create_or_replace_view(:latest_verifications,
from(v)
5 changes: 5 additions & 0 deletions db/migrations/20180523_recreate_views.rb
Original file line number Diff line number Diff line change
@@ -12,6 +12,11 @@
on lv.pact_version_id = pp.pact_version_id"
)

#TODO
#drop_view(:latest_matrix)
#drop_view(:latest_verification_id_for_consumer_version_and_provider)
#drop_view(:latest_matrix_for_consumer_version_and_provider_version)

end

down do

0 comments on commit b2dc209

Please sign in to comment.