Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8195913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:18:05+00:00 2026-06-07T05:18:05+00:00

Is anybody aware of any design patterns around software updates? Specifically I’d like a

  • 0

Is anybody aware of any design patterns around software updates? Specifically I’d like a pattern for converting old files/settings into the latest version.

The best solution I can think of would be to have a set of rules for how to convert from each version to the next version (e.g. v1.0 to v1.1, v1.1 to v1.2, …). Then to convert files/settings to the latest version you would run all the conversion rules in order.

This doesn’t strike me as a very elegant way of doing things – is there a better way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T05:18:07+00:00Added an answer on June 7, 2026 at 5:18 am

    I worked in a system which included a versioning system to migrate a DB to the latest version, and it worked like that. The only improvement we did, is that we sometimes wanted to avoid going through all versions, since it was a lengthly process, so you could define migrations from any version to any version
    if you are in version 1.3 and want to migrate to the latest version and you have scripts to migrate from:

    1. 1.3 to 1.4
    2. 1.4 to 1.5
    3. 1.5 to 1.6
    4. 1.6 to 1.7
    5. 1.7 to 1.8
    6. 1.4 to 1.7

    I’d detect automatically that it can use a single script to go over three versions 1.4 to 1.7 and use 1, 6 and 5. That’s only worth it if the migration is lengthy though…

    If you don’t need to actually migrate the data, but just use it in the format of the latest version, you could achieve the same using the Adapter Pattern using object composition to transform an object with the “1.3” format to the “1.8” format using a chain of adapters in the middle.

    In response to comment:
    Sadly, we had to do the 1.4 to 1.7 by hand. You’ll need something pretty smart to be able to compose optimized updates scripts from the individual ones, without executing them sequentially.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is anybody here aware of a Spy++-like tool which lets me visualize the object
Is anybody aware of a possibility to use C# libraries like OpenTK (http://www.opentk.com/) from
Is anybody aware of a plugin that can be used with Dreamweaver or any
I am trying to see if anybody is aware of any ssh or ftp
Is anyone aware of of anybody offering hosted perforce servers? It doesn't have to
Anybody know of a way to batch NHibernate queries using NHibernate.Linq like you can
Anybody know of a good 3rd Party grid control that supports AutoFill (like Excel
Does anybody see any drawbacks? It should be noted that you can't remove anonymous
If been looking around the web and can't seem to find any good solutions
Does anybody have a code sample for a unicode-aware strings program? Programming language doesn't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.