php - How to update production database with development one? -
i have built web app using mysql , php , i'm @ moment trying figure out best approach make script automatically update customers based on new changes on development environment without affect customer data.
so far first attempt check app version if there new one, download zip new , changed files, mysqldump skipping triggers, etc. of customers, drop tables on customers database, load scheme , reload dumped file.
the problem facing work if change in scheme minor one, if decide add couple of columns new values, or remove unused tables, or remove unused rows upload fails.
- so question whats best approach safely update different databases, based on development database changes?
- i guess best way include queries upgraded script needed queries on it?
- but right way?
- there automatic way handle avoid manually have write each change , avoid miss changes on script , screw all?
i appreciate opinions looking around, didn't find clear approach of procedure.
Comments
Post a Comment