Skip to content

Commit

Permalink
Merge pull request #53 from mattschlosser/patch-1
Browse files Browse the repository at this point in the history
Update Migration.php
  • Loading branch information
byjg authored Nov 21, 2024
2 parents f0f9f87 + 01cd8ea commit c8da6d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -395,17 +395,17 @@ public function update(?int $upVersion = null, bool $force = false): void
}

/**
* Run all scripts to down the database version from current version up to the specified version.
* Run all scripts to down the database version from current version down to 0 or the specified version.
*
* @param int $upVersion
* @param int|null $upVersion
* @param bool $force
* @throws DatabaseDoesNotRegistered
* @throws DatabaseIsIncompleteException
* @throws DatabaseNotVersionedException
* @throws InvalidMigrationFile
* @throws OldVersionSchemaException
*/
public function down(int $upVersion, bool $force = false): void
public function down(?int $upVersion = null, bool $force = false): void
{
$this->migrate($upVersion, -1, $force);
}
Expand Down

0 comments on commit c8da6d3

Please sign in to comment.