[Development] Delete local DB on branch switch

So coming back. (some time later).

What about if we renamed the connection string based on the branch.

So when you checkout a new branch - if that branch hasn’t been checked out by you before then you would get a new db with the branch name on it.

this might give you a bit more of a robust sync of everything based on the branch and the branch alone. because only files in the branches sync folder will ever make it into the database.

you could still have the code checking to remove the db if it thinks the repo is clean (like it is after a change of branch).


Ideally i want a way to tell the diffrence between someone checking in a load of changes (after which the repo is ‘clean’) and someone switching branches and pulling all the changes down (after which the repo is ‘clean’)

anyway. slowly answering a question no one is asking anymore .

  • this repo will give you a db based on the branch name everytime you check out

  • and it will sync it if it’s new from the usync files

2 Likes