Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
stevewest edited this page Mar 12, 2013 · 2 revisions

Here you can find the FuelPHP migration package. It is currently still under construction so things might be broken or missing still

Basic use

Migrations are defined by extending the Migration class and implementing the up and down methods.

The up method should contain whatever this migration does, create tables, write files, set up caches, etc. and the down method should do the opposite of the up method.

Migrations can then be run by creating an instance of the Main class and calling up().

<?php

$main = new FuelPHP\Migration\Main;
$main->up('Vendor\Package\Migrations\FooBar');

You can also pass an array to run more than one migration at once.

Clone this wiki locally