app
assets
public
vendor
alexgarrett
composer
danielstjules
doctrine
hassankhan
illuminate
container
contracts
database
Capsule
Connectors
Console
Eloquent
Migrations
stubs
DatabaseMigrationRepository.php
Migration.php
MigrationCreator.php
MigrationRepositoryInterface.php
Migrator.php
Query
Schema
Connection.php
ConnectionInterface.php
ConnectionResolver.php
ConnectionResolverInterface.php
DatabaseManager.php
DatabaseServiceProvider.php
Grammar.php
MigrationServiceProvider.php
MySqlConnection.php
PostgresConnection.php
QueryException.php
README.md
SQLiteConnection.php
SeedServiceProvider.php
Seeder.php
SqlServerConnection.php
composer.json
support
nesbot
slim
symfony
twig
autoload.php
.gitignore
README.md
composer.json
composer.lock
composer.phar
mode.php
66 lines
1.1 KiB
PHP
Executable File
66 lines
1.1 KiB
PHP
Executable File
<?php namespace Illuminate\Database\Migrations;
|
|
|
|
interface MigrationRepositoryInterface {
|
|
|
|
/**
|
|
* Get the ran migrations for a given package.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function getRan();
|
|
|
|
/**
|
|
* Get the last migration batch.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function getLast();
|
|
|
|
/**
|
|
* Log that a migration was run.
|
|
*
|
|
* @param string $file
|
|
* @param int $batch
|
|
* @return void
|
|
*/
|
|
public function log($file, $batch);
|
|
|
|
/**
|
|
* Remove a migration from the log.
|
|
*
|
|
* @param object $migration
|
|
* @return void
|
|
*/
|
|
public function delete($migration);
|
|
|
|
/**
|
|
* Get the next migration batch number.
|
|
*
|
|
* @return int
|
|
*/
|
|
public function getNextBatchNumber();
|
|
|
|
/**
|
|
* Create the migration repository data store.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function createRepository();
|
|
|
|
/**
|
|
* Determine if the migration repository exists.
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function repositoryExists();
|
|
|
|
/**
|
|
* Set the information source to gather data.
|
|
*
|
|
* @param string $name
|
|
* @return void
|
|
*/
|
|
public function setSource($name);
|
|
|
|
}
|