Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

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