Giter Site home page Giter Site logo

Comments (3)

datacharmer avatar datacharmer commented on August 10, 2024

The config file cannot be updated. The version check is there to avoid using an old config version with new software.
As a workaround, please move the config file from $HOME/.dbdeployer to another location, and then try applying
the config changes to the new dbdeployer, using dbdeployer defaults update as needed

from dbdeployer.

utdrmac avatar utdrmac commented on August 10, 2024

The config file cannot be updated.

Of course it can. os.Open(), f.Read(), parse, upgrade object, f.Write(), f.Close(). Much like a git merge, you have the user's previous config, and you have the new config with defaults. Merge them. Write it out. config upgraded.

As a workaround,

I must use a "workaround" every time I upgrade dbdeployer?

try applying the config changes to the new dbdeployer

What config changes? I haven't made any changes to the config.

Here's what happened:

  1. Download dbdeployer
  2. Play with a few commands. Neat tool.
  3. Realize you don't have latest version.
  4. Upgrade using built-in function
  5. Can't use new version without constant warnings about version config

As end-user, I'm expected to manually migrate the config file every time I upgrade?

from dbdeployer.

datacharmer avatar datacharmer commented on August 10, 2024

Of course it can.
What I mean is that the way dbdeployer is designed, it privileges user choices (customised configuration) and prevents bad usage by means of nasty messages.

I haven't made any changes to the config.

Then simply delete it. Apparently, you don't need a customised config. But dbdeployer will prevent a mixup by design.
If you don't have a customised config, all updates will work silently.

from dbdeployer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.