Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 621
Zeile 63... Zeile 63...
63
            if (count($migrations = $this->getStatusFor($ran, $batches)) > 0) {
63
            if (count($migrations = $this->getStatusFor($ran, $batches)) > 0) {
64
                $this->newLine();
64
                $this->newLine();
Zeile 65... Zeile 65...
65
 
65
 
Zeile 66... Zeile 66...
66
                $this->components->twoColumnDetail('<fg=gray>Migration name</>', '<fg=gray>Batch / Status</>');
66
                $this->components->twoColumnDetail('<fg=gray>Migration name</>', '<fg=gray>Batch / Status</>');
-
 
67
 
-
 
68
                $migrations
-
 
69
                    ->when($this->option('pending'), fn ($collection) => $collection->filter(function ($migration) {
-
 
70
                        return str($migration[1])->contains('Pending');
67
 
71
                    }))
68
                $migrations->each(
72
                    ->each(
Zeile 69... Zeile 73...
69
                    fn ($migration) => $this->components->twoColumnDetail($migration[0], $migration[1])
73
                        fn ($migration) => $this->components->twoColumnDetail($migration[0], $migration[1])
70
                );
74
                    );
71
 
75
 
72
                $this->newLine();
76
                $this->newLine();
Zeile 118... Zeile 122...
118
     */
122
     */
119
    protected function getOptions()
123
    protected function getOptions()
120
    {
124
    {
121
        return [
125
        return [
122
            ['database', null, InputOption::VALUE_OPTIONAL, 'The database connection to use'],
126
            ['database', null, InputOption::VALUE_OPTIONAL, 'The database connection to use'],
123
 
-
 
-
 
127
            ['pending', null, InputOption::VALUE_NONE, 'Only list pending migrations'],
124
            ['path', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, 'The path(s) to the migrations files to use'],
128
            ['path', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, 'The path(s) to the migrations files to use'],
125
 
-
 
126
            ['realpath', null, InputOption::VALUE_NONE, 'Indicate any provided migration file paths are pre-resolved absolute paths'],
129
            ['realpath', null, InputOption::VALUE_NONE, 'Indicate any provided migration file paths are pre-resolved absolute paths'],
127
        ];
130
        ];
128
    }
131
    }
129
}
132
}