independent-analytics
/
vendor
/
illuminate
/
database
/
Migrations
/
MigrationRepositoryInterface.php
stubs
3 weeks ago
DatabaseMigrationRepository.php
3 weeks ago
Migration.php
2 years ago
MigrationCreator.php
3 weeks ago
MigrationRepositoryInterface.php
2 years ago
Migrator.php
3 weeks ago
MigrationRepositoryInterface.php
80 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWPSCOPED\Illuminate\Database\Migrations; |
| 4 | |
| 5 | /** @internal */ |
| 6 | interface MigrationRepositoryInterface |
| 7 | { |
| 8 | /** |
| 9 | * Get the completed migrations. |
| 10 | * |
| 11 | * @return array |
| 12 | */ |
| 13 | public function getRan(); |
| 14 | /** |
| 15 | * Get the list of migrations. |
| 16 | * |
| 17 | * @param int $steps |
| 18 | * @return array |
| 19 | */ |
| 20 | public function getMigrations($steps); |
| 21 | /** |
| 22 | * Get the last migration batch. |
| 23 | * |
| 24 | * @return array |
| 25 | */ |
| 26 | public function getLast(); |
| 27 | /** |
| 28 | * Get the completed migrations with their batch numbers. |
| 29 | * |
| 30 | * @return array |
| 31 | */ |
| 32 | public function getMigrationBatches(); |
| 33 | /** |
| 34 | * Log that a migration was run. |
| 35 | * |
| 36 | * @param string $file |
| 37 | * @param int $batch |
| 38 | * @return void |
| 39 | */ |
| 40 | public function log($file, $batch); |
| 41 | /** |
| 42 | * Remove a migration from the log. |
| 43 | * |
| 44 | * @param object $migration |
| 45 | * @return void |
| 46 | */ |
| 47 | public function delete($migration); |
| 48 | /** |
| 49 | * Get the next migration batch number. |
| 50 | * |
| 51 | * @return int |
| 52 | */ |
| 53 | public function getNextBatchNumber(); |
| 54 | /** |
| 55 | * Create the migration repository data store. |
| 56 | * |
| 57 | * @return void |
| 58 | */ |
| 59 | public function createRepository(); |
| 60 | /** |
| 61 | * Determine if the migration repository exists. |
| 62 | * |
| 63 | * @return bool |
| 64 | */ |
| 65 | public function repositoryExists(); |
| 66 | /** |
| 67 | * Delete the migration repository data store. |
| 68 | * |
| 69 | * @return void |
| 70 | */ |
| 71 | public function deleteRepository(); |
| 72 | /** |
| 73 | * Set the information source to gather data. |
| 74 | * |
| 75 | * @param string $name |
| 76 | * @return void |
| 77 | */ |
| 78 | public function setSource($name); |
| 79 | } |
| 80 |