1. From your Ushahidi root folder run this from the commandline:
./bin/phinx create -c application/phinx.php DoSomethingWithTheDb
2. A migration template will be created in this folder:
/migrations/timestamp_migration_name.php
In our example above, the migration template would be created in:
/migrations/
20141105085836_do_something_with_the_db.php
4. Open the template:
5. Add the necessary queries to the up an down methods
- Queries in the UP method apply the migration
- Queries in the DOWN method undo the migration
6 Next we run the migration