Skip to content
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

Draft
wants to merge 1 commit into
base: save-skipped-errored-migrations
Choose a base branch
from

Conversation

goetas
Copy link
Member

@goetas 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;
Copy link
Member Author

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?

Copy link
Member

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
Copy link
Member

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

Suggested change
?string $reason
?string $reason = null

?

public function getExecutedMigrations(): ExecutedMigrationsList;

/**
* Returns all the for which there was an execution attempt
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns all the for which there was an execution attempt
* Returns all the migrations for which there was an execution attempt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants