Skip to content

Commit 3bc9ada

Browse files
authored
Merge branch 'master' into 5.0
2 parents 1557b88 + c8da6d3 commit 3bc9ada

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Migration.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,17 +395,17 @@ public function update(?int $upVersion = null, bool $force = false): void
395395
}
396396

397397
/**
398-
* Run all scripts to down the database version from current version up to the specified version.
398+
* Run all scripts to down the database version from current version down to 0 or the specified version.
399399
*
400-
* @param int $upVersion
400+
* @param int|null $upVersion
401401
* @param bool $force
402402
* @throws DatabaseDoesNotRegistered
403403
* @throws DatabaseIsIncompleteException
404404
* @throws DatabaseNotVersionedException
405405
* @throws InvalidMigrationFile
406406
* @throws OldVersionSchemaException
407407
*/
408-
public function down(int $upVersion, bool $force = false): void
408+
public function down(?int $upVersion = null, bool $force = false): void
409409
{
410410
$this->migrate($upVersion, -1, $force);
411411
}

0 commit comments

Comments
 (0)