Метод | Описание | |
---|---|---|
__construct ( $config = [] ) | ||
current ( string $type = '' ) : mixed | Sets the schema to the migration version set in config for a given migration type | |
find_migrations ( string $type = '' ) : array | Retrieves list of available migration scripts for a given migration type | |
get_available_version ( ) : string | Retrieves current available migration version | |
get_latest_version ( string $type = '' ) : string | Retrieves latest migration version for a given migration type | |
get_migration_number ( string $migration ) : string | Extracts the migration number from a filename | |
get_migrations_path ( string $type = '' ) : string | Retrieves the migrations path for a given migration type | |
get_version ( string $type = '' ) : string | Retrieves current schema version for a given migration type | |
install ( ) : mixed | Install TastyIgniter core schema to the migration version set in config. | |
latest ( string $type = '' ) : mixed | Sets the schema to the latest migration for a given migration type | |
version ( string $target_version, string $type = '' ) : mixed | Migrate to a schema version for a given migration type |
Метод | Описание | |
---|---|---|
_get_version ( string $type = '' ) : string | Retrieves current schema version for a given migration type | |
_update_version ( string $migration, string $type = '' ) | Stores the current schema version for a given migration type |
protected _get_version ( string $type = '' ) : string | ||
$type | string | |
Результат | string | Current migration version |
protected _update_version ( string $migration, string $type = '' ) | ||
$migration | string | Migration reached |
$type | string |
public find_migrations ( string $type = '' ) : array | ||
$type | string | |
Результат | array | list of migration file paths sorted by version |
public get_available_version ( ) : string | ||
Результат | string | Current migration version |
public get_latest_version ( string $type = '' ) : string | ||
$type | string | |
Результат | string | Latest migration version |
public get_migration_number ( string $migration ) : string | ||
$migration | string | |
Результат | string | Numeric portion of a migration filename |
public get_migrations_path ( string $type = '' ) : string | ||
$type | string | |
Результат | string | migration path |
public get_version ( string $type = '' ) : string | ||
$type | string | |
Результат | string | Current migration version |