Skip to content

Improve migrate:mark: add --clear option, preview history changes, drop Yii2-style versions - #373

Merged
samdark merged 5 commits into
masterfrom
improve-mark
Oct 17, 2026
Merged

samdark merged 5 commits into
masterfrom
improve-mark

Conversation

@vjik

@vjik vjik commented Oct 16, 2026

Copy link
Copy Markdown
Member
Q A
Is bugfix? ❌
New feature? ❌
Breaks BC? ❌

vjik added 4 commits October 16, 2026 15:58
Also drop the Yii2-style timestamp format with underscore and fix misleading
examples of unqualified class name and timestamp.
@codecov

codecov Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.52%. Comparing base (51b0a94) to head (ce53309).

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #373      +/-   ##
============================================
+ Coverage     97.48%   97.52%   +0.04%     
- Complexity      395      402       +7     
============================================
  Files            30       30              
  Lines          1232     1254      +22     
============================================
+ Hits           1201     1223      +22     
  Misses           31       31              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vjik vjik changed the title Improve migrate:mark: add --all option, preview history changes, drop Yii2-style versions Improve migrate:mark: add --clear option, preview history changes, drop Yii2-style versions Oct 16, 2026
@vjik
vjik requested a balanced review from Copilot October 16, 2026 13:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

Static review found no blocking issues; implementation, tests, and documentation are consistent, though tests were not executed.

0 open findings

What changed in this PR

Updates migrate:mark to make history-only changes clearer and easier to preview.

Changes:

  • Replaces the special base version with --clear and removes Yii2-style timestamps.
  • Lists affected migrations before confirmation.
  • Updates tests, documentation, and changelog.
File Description
tests/​Driver/​Sqlite/​MarkCommandTest.php Uses --clear in rollback coverage.
tests/​Common/​Command/​AbstractMarkCommandTest.php Tests previews, clearing, confirmation, and argument validation.
tests/​Common/​Command/​AbstractDatabaseCommandsTest.php Updates database-isolated clearing coverage.
src/​Command/​MarkCommand.php Adds --clear, previews, and revised version validation.
docs/​guide/​en/​migration-history.md Documents the updated command interface.
CHANGELOG.md Updates PR references and contributor credits.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@vjik
vjik requested a review from a team October 16, 2026 13:30
@vjik vjik added the status:code review The pull request needs review. label Oct 16, 2026
@samdark
samdark merged commit 7264537 into master Oct 17, 2026
59 checks passed
@samdark

samdark commented Oct 17, 2026

Copy link
Copy Markdown
Member

👍

@samdark
samdark deleted the improve-mark branch October 17, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status:code review The pull request needs review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants