Silla.IO API
  • Namespace
  • Class
  • Tree
  • Todo
  • Download

Namespaces

  • App
    • Controllers
  • CMS
    • Controllers
    • Helpers
    • Models
  • Configurations
    • CI
    • Development
    • Production
    • Staging
  • Core
    • Base
    • CLI
      • Cache
      • DB
    • Helpers
    • Modules
      • Cache
        • Adapters
        • Interfaces
      • Crypt
      • DB
        • Adapters
        • Decorators
          • Interfaces
        • Features
          • Paginator
        • Interfaces
      • Registry
      • Render
        • Adapters
        • Interfaces
      • Router
      • Session
        • Adapters
        • Interfaces
  • None
  • Tasks
    • DB

Classes

  • DB
  • DbCache
  • Migration
  • Observer
  • Query

Class Migration

Class Migration definition.

Abstract
Namespace: Core\Modules\DB
Located at modules/db/migration.php

Methods summary

public
# __construct( string $version )

Init actions.

Init actions.

Parameters

$version
Version string.
public
# runUp( )

Executes next migration.

Executes next migration.

public
# runDown( )

Executes previous migration.

Executes previous migration.

private
# afterUp( )

After next migration execution hook.

After next migration execution hook.

private
# afterDown( )

After previous migration execution hook.

After previous migration execution hook.

private
# beforeUp( )

Before next migration execution hook.

Before next migration execution hook.

private
# beforeDown( )

Before previous migration execution hook.

Before previous migration execution hook.

abstract protected
# up( )

Up (next) method definition.

Up (next) method definition.

abstract protected
# down( )

Down (previous) method definition.

Down (previous) method definition.

protected
# createTable( string $tableName, array $columns, string $engine = 'MyISAM' )

Creates a table.

Creates a table.

Parameters

$tableName
Table name.
$columns
Array of column names.
$engine
Storage engine type.
protected
# dropTable( string $tableName )

Drops a table.

Drops a table.

Parameters

$tableName
Table name.
protected
# createColumns( string $tableName, array $columns )

Creates columns.

Creates columns.

Parameters

$tableName
Table name.
$columns
Array of column names.
protected
# dropColumns( string $tableName, array $columns )

Drop columns.

Drop columns.

Parameters

$tableName
Table name.
$columns
Array of column names.
protected
# createIndex( )

Creation of index method.

Creation of index method.

protected
# dropIndex( )

Removal of index method.

Removal of index method.

private array
# parseColumn( string $options )

Parses a column options.

Parses a column options.

Parameters

$options
Options to parse.

Returns

array

Properties summary

public string $version

Verison number container.

Verison number container.

#
private boolean $skip

Whether to skip execution flag.

Whether to skip execution flag.

# false
Silla.IO API API documentation generated by ApiGen