W3cubDocs

/Laravel 4.2

MigrationRepositoryInterface

interface MigrationRepositoryInterface (View source)

Methods

array getRan()

Get the ran migrations for a given package.

array getLast()

Get the last migration batch.

void log(string $file, int $batch)

Log that a migration was run.

void delete(object $migration)

Remove a migration from the log.

int getNextBatchNumber()

Get the next migration batch number.

void createRepository()

Create the migration repository data store.

bool repositoryExists()

Determine if the migration repository exists.

void setSource(string $name)

Set the information source to gather data.

Details

array getRan()

Get the ran migrations for a given package.

Return Value

array

array getLast()

Get the last migration batch.

Return Value

array

void log(string $file, int $batch)

Log that a migration was run.

Parameters

string $file
int $batch

Return Value

void

void delete(object $migration)

Remove a migration from the log.

Parameters

object $migration

Return Value

void

int getNextBatchNumber()

Get the next migration batch number.

Return Value

int

void createRepository()

Create the migration repository data store.

Return Value

void

bool repositoryExists()

Determine if the migration repository exists.

Return Value

bool

void setSource(string $name)

Set the information source to gather data.

Parameters

string $name

Return Value

void

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/4.2/Illuminate/Database/Migrations/MigrationRepositoryInterface.html