CCAFS / ccafs-ap

CCAFS P&R is a platform to assist in the planning and reporting of CCAFS-related research projects. Migrated from https://code.google.com/p/ccafs-ap/
GNU General Public License v3.0
2 stars 1 forks source link

Improve the database design for the impact pathways relations #340

Closed hernandcb closed 8 years ago

hernandcb commented 9 years ago

Due to the initial requirements we designed a complex way to relate the ip elements with the program to which it belongs to (See database diagram attached).

Given that at the end we didn't need that complexity, it is needed to simplify it.

image

hernandcb commented 9 years ago

I have created a relation between the ip_element and the ip_program directly (see image)

However, before the deletion of the intermediate tables it is needed to adjust the backend code. This issue will remain open until the changes are applied and the intermediate tables are deleted.

image

hernandcb commented 9 years ago

Please keep in mind that the table ip_indicators also refers to the ip_program_elements table. I have already created a direct relation between the ip_indicator and the ip_element.

Therefore, the changes pending are:

htobon commented 9 years ago

@hernandcb Any update on this issue?

hernandcb commented 9 years ago

Yes, I have updated the list above. I'll come back to this issue once everything is done.

htobon commented 9 years ago

thks.

htobon commented 9 years ago

Should we move this issue for the next release?

htobon commented 8 years ago

MARLO will manage a different Impact Pathway.