phpBB

Development Wiki

Migrations/Extensions

From phpBB Development Wiki

< Migrations
Revision as of 21:34, 31 January 2013 by Exreaction (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Using Migrations in your Extension is simple.

Automatically install/revert Migrations when enabled/purged

If you wish to have your Migrations installed and removed automatically when your extension is enabled and purged respectively, all you need to do is put your Migration files in ext/(your extension name)/migrations/

Run Updates

If the user has updated your extension and new migration files were added, you can call the following function:

phpbb_extension_manager->handle_migrations($extension_name'enable');


Any new migration files included in the migrations/ directory in your extension will then be automatically installed.