set the BUDGET_CRITERIA_ID for YEARLYINVESTMENT records using a BUDGET_CRITERIA record that has a match for the YEARLYINVESTMENT SIMULATIONID & BUDGETNAME
create new BUDGET_CRITERIA records for any YEARLYINVESTMENT records that did not have a matching BUDGET_CRITERIA record from step 3
re-run step 3 with added condition that only YEARLYINVESTMENT records that didn't have a match from step 3 be updated
remove BUDGETNAME column from YEARLYINVESTMENT
set YEARLYINVESTMENT BUDGET_CRITERIA_ID to not nullable
create foreign key on YEARLYINVESTMENT to BUDGET_CRITERIA using YEARLYINVESTMENT BUDGET_CRITERIA_ID
-modified all API and code behind references to YEARLYINVESTMENT entity by removing the BUDGETNAME column and adding the new BUDGET_CRITERIA_ID column (all logic based on around the removed column has been updated to work with the new column)
-created sql script that will: