PHP Class Migrate, 68kb

Inheritance: extends CI_Controller
Afficher le fichier Open project: 68kb/68kb Class Usage Examples

Méthodes publiques

Свойство Type Description
$_ci
$error
$migrations_enabled
$migrations_path
$verbose

Méthodes publiques

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

Private Methods

Méthode 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 méthode

public __construct ( )

install() public méthode

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

setverbose() public méthode

public setverbose ( $state )

version() public méthode

Calls each migration step required to get to the schema version of choice
public version ( $version ) : void
$version integer Target schema version
Résultat 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