-
-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
expose all attempted execution migrations #1194
base: save-skipped-errored-migrations
Are you sure you want to change the base?
expose all attempted execution migrations #1194
Conversation
goetas
commented
Aug 22, 2021
Q | A |
---|---|
Type | feature |
BC Break | no |
Fixed issues | - |
* Returns all the for which there was an execution attempt | ||
* Includes skipped, errored executed migrations. | ||
*/ | ||
public function getAllExecutedMigrations(): ExecutedMigrationsList; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what would be here the best way to add such functionality to this interface in a backward compatible way?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usually something like
class Foo implements MetadataStorage, AllExecutedMigrationsInterfaceThingy
but I assume you're looking for something different?
Version $version, | ||
?DateTimeImmutable $executedAt = null, | ||
?float $executionTime = null, | ||
?string $reason |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you decide not to use
?string $reason | |
?string $reason = null |
?
public function getExecutedMigrations(): ExecutedMigrationsList; | ||
|
||
/** | ||
* Returns all the for which there was an execution attempt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Returns all the for which there was an execution attempt | |
* Returns all the migrations for which there was an execution attempt |