Свойство | Тип | Описание | |
---|---|---|---|
$_error_string | string | Error message | |
$_migration_auto_latest | boolean | Whether to automatically run migrations | |
$_migration_enabled | boolean | Whether the library is enabled | |
$_migration_path | string | Path to migration classes | |
$_migration_regex | string | Migration basename regex | |
$_migration_table | string | Database table with migration info | |
$_migration_type | boolean | Migration numbering type | |
$_migration_version | mixed | Current migration version |
Метод | Описание | |
---|---|---|
__construct ( array $config = [] ) : void | Initialize Migration Class | |
__get ( string $var ) : mixed | Enable the use of CI super-global | |
current ( ) : mixed | Sets the schema to the migration version set in config | |
error_string ( ) : string | Error string | |
find_migrations ( ) : array | Retrieves list of available migration scripts | |
latest ( ) : mixed | Sets the schema to the latest migration | |
version ( string $target_version ) : mixed | Migrate to a schema version |
Метод | Описание | |
---|---|---|
_get_migration_name ( string $migration ) : string | Extracts the migration class name from a filename | |
_get_migration_number ( string $migration ) : string | Extracts the migration number from a filename | |
_get_version ( ) : string | Retrieves current schema version | |
_update_version ( string $migration ) : void | Stores the current schema version |
public __construct ( array $config = [] ) : void | ||
$config | array | |
Результат | void |
protected _get_migration_name ( string $migration ) : string | ||
$migration | string | |
Результат | string | text portion of a migration filename |
protected _get_migration_number ( string $migration ) : string | ||
$migration | string | |
Результат | string | Numeric portion of a migration filename |
protected _get_version ( ) : string | ||
Результат | string | Current migration version |
protected _update_version ( string $migration ) : void | ||
$migration | string | Migration reached |
Результат | void |
public error_string ( ) : string | ||
Результат | string | Error message returned as a string |
public find_migrations ( ) : array | ||
Результат | array | list of migration file paths sorted by version |
protected bool $_migration_auto_latest | ||
Результат | boolean |
protected bool $_migration_enabled | ||
Результат | boolean |
protected string $_migration_path | ||
Результат | string |
protected string $_migration_regex | ||
Результат | string |
protected string $_migration_table | ||
Результат | string |
protected bool $_migration_type | ||
Результат | boolean |
protected mixed $_migration_version | ||
Результат | mixed |