Index Documentation

FsDbMigrationRepo
in package
implements DbMigrationRepo

Table of Contents

Interfaces

DbMigrationRepo
Represents a repository of migrations.

Methods

__construct()  : mixed
getMigrations()  : array<string|int, DbMigrationInfo>
Returns info on migrations contained in this repository.
saveMigrationTemplate()  : void
Saves a migratinon template to a file within the directory of this migration repository.

Methods

__construct()

public __construct(string $path) : mixed
Parameters
$path : string

Filesystem path to the directory containing the migration files.

saveMigrationTemplate()

Saves a migratinon template to a file within the directory of this migration repository.

public saveMigrationTemplate(string $name, string $body) : void

If the repository directory does not exist, it will be created.

Parameters
$name : string

Name for the migration PHP file.

$body : string

Body for the migration PHP file.


        
On this page

Search results