Create Update Script
danpastori opened this issue · comments
As Stoic Money progresses, an update script will be essential. This will allow users to update their app without overwriting their customizations.
What We Need to Account For
- Database Seeders (categories, institutions, defaults)
- Database Migrations (new features, tables, etc.)
- Options
Approach
Create a command that when run takes into account the current version of the app and runs incremental upgrades.
php artisan stoic-money:update
Checks version and we have a script that loops until completely updated.
If we are on version 1.0 and going to 1.1 then we run 1 update.
If we are on version 1.0 and going to 1.9 then we run every update in between.