Skip to content

fix: use correct delimiter in refresh migration command#15211

Merged
Jonas Elfering (keulinho) merged 3 commits intotrunkfrom
fix/refresh-migration-command
Feb 26, 2026
Merged

fix: use correct delimiter in refresh migration command#15211
Jonas Elfering (keulinho) merged 3 commits intotrunkfrom
fix/refresh-migration-command

Conversation

@keulinho
Copy link
Copy Markdown
Contributor

fixes: #14904

1. Why is this change necessary?

Regex was wrong because suddenly we have two delimiters

2. What does this change do, exactly?

Fix the regex and add tests

3. Describe each step to reproduce the issue or behaviour.

see issue

4. Please link to the relevant issues (if any).

#14904

@github-actions
Copy link
Copy Markdown

Warnings
⚠️ The Pull Request doesn't contain any release info, if your changes are relevant for external developers please add an entry to the release info file, including the consequences of the change and how it affects external developers. For detailed infos please refer to the [release documentation guide](https://github.com/shopware/shopware/blob/trunk/delivery-process/documenting-a-release.md).

@explore-openapi
Copy link
Copy Markdown

explore-openapi bot commented Feb 25, 2026

OpenAPI Snapshot

ℹ️ shopware/store-api — schema identical to base trunk

ℹ️ shopware/admin-api — schema identical to base trunk

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.47%. Comparing base (94ad656) to head (1cc8b8b).
⚠️ Report is 7 commits behind head on trunk.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##            trunk   #15211      +/-   ##
==========================================
+ Coverage   56.44%   56.47%   +0.02%     
==========================================
  Files        2997     2997              
  Lines       92403    92397       -6     
==========================================
+ Hits        52157    52177      +20     
+ Misses      40246    40220      -26     
Flag Coverage Δ
phpunit-migration 91.80% <ø> (ø)
phpunit-unit 53.88% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@keulinho Jonas Elfering (keulinho) added this pull request to the merge queue Feb 26, 2026
Merged via the queue into trunk with commit ec6a980 Feb 26, 2026
70 checks passed
@keulinho Jonas Elfering (keulinho) deleted the fix/refresh-migration-command branch February 26, 2026 13:14
@github-actions github-actions bot added this to the 6.7.9.0 milestone Feb 26, 2026
static::assertInstanceOf(MigrationStep::class, $migration);
$newTimestamp = $migration->getCreationTimestamp();
// assert that the new timestamp is within 3 second of the current time, to account for any slight delays in execution
static::assertEqualsWithDelta(time(), $newTimestamp, 3);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Self-note: if this gets flaky, replace with $this->assertGreaterThanOrEqual($startTime, $newTimestamp);

and set $startTime = time(); at the beginning of the test

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yep could do, however i wanted also to have a upper bound

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-6.6.x component/core domain/framework Responsible for the framework-level code includes core, administration, storefront, and frontends milestone/6.7.9.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression: database:refresh-migration Command no longer works

4 participants