Skip to content

Commit f44fcd9

Browse files
Execute in reverse on direction down
1 parent d6d2066 commit f44fcd9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Migration.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ public function down()
5252
protected function processSchemas()
5353
{
5454
$schemas = $this->schemas();
55+
56+
if ($this->direction === 'down') {
57+
$schemas = array_reverse($schemas);
58+
}
5559

5660
foreach ($schemas as $name => $method) {
5761
$schema = $this->getSchemaInstance($name);

0 commit comments

Comments
 (0)