There is an option to add custom code to the Upgrade code group to do for example an insert into a table. However, how do I use this when using a branch?
for example if I have a table with 2 rows and during development I want to add row number 3.
trunk version 1 2 rows exist
branch version 1 2 rows exist
branch version 2 3 rows should exist
trunk version 2 3 rows should exist
Branch version 2 is merged back to the trunk to create trunk v2 and trunk version 2 will be used to do the upgrade from trunk version 1 to 2.
The actual insert is developed in branch version 2. Now I have two options:
option 1: If I use after upgrade always then the code is in the upgrade script every release untill i delete it manually.
option 2 :If I use after upgrade from branch 1 to branch 2 then insert part gets lost in the trunk version 2.
How do I do this correctly? If I have to do it manually in trunk version 2 then it beats the purpose of the upgrade script part.