0

I am writing a sample application in which I wrote all sql in files.

Whenever I added new functionality I am creating new sql script.

What technology should I use when my application run first check all the script if not exist create or if any new script added create that one only. I gave files name like script1.sql,script2.sql and so on.

1
  • What did you tried so far? Please edit your question! Commented Dec 23, 2015 at 8:37

1 Answer 1

1

You are using a set of sql scripts to set up your DB. Every time you have a modification you add another script - incremental script.

You can use DB maintain for managing them. It will hold information about which scripts were executed and it will know to just execute the last patch. It seems to be exactly what you are looking for:

  1. Keeps track of what scripts were executed ( DB version )
  2. Can ease deployment to another environment ( with a lower DB version )
  3. Can do much more than that , but it seems this is what you need.

PS Not sure if there are other frameworks which can do the same.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks. My initial requirement is only this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.