Warning when changing Docker DB type in Targets

So, I had a situation (that fortunately wasn’t as bad as it could have been) where I was trying to get a prod environment up and running with a new remote MySql db.

In targets, changed DB Type in my Docker Target to ‘none’. I did this by accident in the wrong target, thinking I was in the new production one. Instead I was in local.

This essentially 100% wiped the DB in that local development environment, as soon as I then realised my error and reselected Docker it created a new MySql server - with none of my schema, or data.

This could be quite significant to someone - so I propose an alert that would have warned me and made me triple check I was in the right target/I hadn’t selected to change the DB by accident.

Good one indeed. We must also add more warnings and checks when switching db types, as those usually require also a full db rebuild and wiping of the previous one.

1 Like