travispessetto / script-updater-for-php

A MIT Licensed script updater for projects
MIT License
31 stars 7 forks source link

mysql database update ? #4

Closed yarekc closed 3 years ago

yarekc commented 3 years ago

hi, Looks great. I have a question : can your system automatically synch 2 mysql DBs ?

Since php projects mostly use mysql and when you update the project, it is very common to add some fields to DB, can this be done with your project ?

regards

travispessetto commented 3 years ago

This is not something the script will do by itself due to the fact that each project has a different configuration file and could have different database types. However, the updater allows scripts to be ran. So, you can add a script to change your database if needed.

files:
        add:
           - {local: "db/migration1.php", remote: "db/migration1.php"}
scripts:
        do:
            - {script: "db/migration1.php", delete: true}