FOR ARCHIVAL PURPOSES ONLY

The information in this wiki hasn't been maintained for a good while. Some of the projects described have since been deprecated.

In particular, the "Ushahidi Platform v3.x" section contains information that is often misleading. Many details about this version of Platform have changed since.

This website is an extraction of the original Ushahidi wiki into a static form. Because of that, functions like logging in, commenting or searching will not work.

For more documentation, please refer to https://docs.ushahidi.com

Skip to end of metadata
Go to start of metadata

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

  • No labels