PHP Class Migrate, 68kb

Inheritance: extends CI_Controller
Exibir arquivo Open project: 68kb/68kb Class Usage Examples

Public Properties

Property Type Description
$_ci
$error
$migrations_enabled
$migrations_path
$verbose

Public Methods

Method Description
__construct ( )
install ( ) : void Installs the schema up to the last version
setverbose ( $state )
version ( $version ) : void Migrate to a schema version

Private Methods

Method Description
_get_db_schema_version ( ) : integer Retrieves current schema version of the db
_get_schema_version ( ) : integer Retrieves current schema version
_update_schema_version ( $schema_version ) : void Stores the current schema version

Method Details

__construct() public method

public __construct ( )

install() public method

Installs the schema up to the last version
public install ( ) : void
return void Outputs a report of the installation

setverbose() public method

public setverbose ( $state )

version() public method

Calls each migration step required to get to the schema version of choice
public version ( $version ) : void
$version integer Target schema version
return void Outputs a report of the migration

Property Details

$_ci public_oe property

public $_ci

$error public_oe property

public $error

$migrations_enabled public_oe property

public $migrations_enabled

$migrations_path public_oe property

public $migrations_path

$verbose public_oe property

public $verbose