I have a solution on dev instance with one model driven and a couple of canvas apps. The canvas apps access the dev Azure MS SQL database, same tables. Upon export/import for the first time into staging, it asks to re-create the db connection to the sql server. Then it said I have to go into the app to re-reference the sql server tables that the app needs to access. The problem is I updated the connection for canvas app 2 first, and the new table reference gets the name "table1". On dev it gets "table1_1" (since canvas app 1 was set up first and got "table1"). So now both apps code referencing the wrong table names. I had to manually edit each app's code to reference the correct tables to get them to work.
After that, I re-imported the same solution thinking it will revert the code back to original and the apps will break again. But it didn't change the modified code on staging. So my questions are:
1) what happens if I make future change to the code on dev and release? Will it update the code on staging?
2) I've noticed in the solution view for staging I cannot change app's code (managed), but when going outside of the solution in the all apps list, I can modify the code. What will happen on the next release?