Question

I have been trying to figure out the logic of upgrading web applications. Like in case of DNN. It provides upgrades to switch to newer versions. How is the existing data managed? Do we replace the whole project :P? What goes behind the scenes?

Thanks

Was it helpful?

Solution

It really depends what has been modified between versions.

  • Entirely new data structures can be added and left empty
  • Any changes to existing data structure must either:
    • Have default values
    • Have some way to automatically convert/populate from existing values
    • Prompt the user if necessary. (Last resort option)

Once the upgraded data structure is in place, the corresponding web site code can be deployed. In most cases, the code will only work with the corresponding data structure version. And, normally, the code updates can be deployed using either "delete existing" or "full overwrite".

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top