\BrightMigrationManager

Manages migrations in a configurable $migration_table_name

$manager = \Bright\MigrationManager::get_instance( array( 'migration_table_name' => 'bright_schemaversion', 'log_func' => function($obj,$description=null) { $bright = \Bright\brightClass()::getInstance(); $bright->log($obj,$description); }, 'execute_sql_func' => function($sql) { $bright = \Bright\brightClass()::getInstance(); return $bright->execute_sql($sql); } )

Summary

Methods
Properties
Constants
get_instance()
__destroy()
run()
add_patch()
migrate_database()
migration_already_run()
$migrations
$execute_sql_func
$log_func
$migration_table_name
No constants found
__construct()
$instance
N/A
__clone()
__wakeup()
No private properties found
N/A

Properties

$migrations

$migrations : 

Type

$execute_sql_func

$execute_sql_func : 

Type

$log_func

$log_func : 

Type

$migration_table_name

$migration_table_name : 

Type

$instance

$instance : 

Type

Methods

get_instance()

get_instance(  $args) : \Bright\Singleton

Returns the *Singleton* instance of this class.

Parameters

$args

Returns

\Bright\Singleton

The Singleton instance.

__destroy()

__destroy() 

run()

run(  $sql) 

Parameters

$sql

add_patch()

add_patch(  $key,   $sql) 

Parameters

$key
$sql

migrate_database()

migrate_database() 

migration_already_run()

migration_already_run(  $key) 

Parameters

$key

__construct()

__construct(  $args = array()) 

Parameters

$args

__clone()

__clone() : void

Private clone method to prevent cloning of the instance of the *Singleton* instance.

__wakeup()

__wakeup() : void

Private unserialize method to prevent unserializing of the *Singleton* instance.