Project

Profile

Help

Refactor #2119

Updated by jortel@redhat.com over 3 years ago

The data in the _consumer_bindings_ collection needs to be migrated into the _ConsumerDistributor_ table in postgres.

For each field in the consumer_bindings document:
<pre>
consumer_bindings => consumer_distributor
_________________ | _______________________________
_id => id (generated)
consumer_id => consumer_id (by Consumer relation)
distributor_id => distributor_id (by Distributor relation)
repo_id => (omitted: each distributor record has a unique id and is associated with a repository)
notify_agent => (omitted: supported nodes)
consumer_actions => (omitted: supported agent)
deleted => (omitted: supported agent)
</pre>

*Note*: The agent and nodes are not included in 3.0.

Back