Skip to content

Bugfix: Correct Version Number Regex parsing of migration for logs - #4611

Merged
objecttothis merged 2 commits into
masterfrom
bugfix-version-logging-bug
Aug 6, 2026
Merged

objecttothis merged 2 commits into
masterfrom
bugfix-version-logging-bug

Conversation

@objecttothis

@objecttothis objecttothis commented Aug 4, 2026 •

Copy link
Copy Markdown
Member

This PR also refactors execute_script() to PSR compliant naming and combines duplicate code into one function.

Summary by CodeRabbit

  • Bug Fixes
    • Improved database migration reliability by standardizing SQL script execution.
    • Preserved transactional behavior where required, including safer rollback handling when migration scripts fail.
    • Updated existing migrations to use the corrected execution process consistently.

…ll migrations

Align migration helper function calls with PSR-12 camelCase naming convention.
Affects all migration files from initial schema through recent upgrades.

Signed-off-by: Travis Garrison <[email protected]>
@objecttothis objecttothis added this to the 3.4.2 milestone Aug 4, 2026
@objecttothis objecttothis self-assigned this Aug 4, 2026
@coderabbitai

coderabbitai Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The migration helper API is consolidated into executeScript(). All database migrations now use the new helper name, and one migration enables transaction handling through its boolean argument.

Changes

Migration script execution

Layer / File(s) Summary
Consolidated helper behavior
app/Helpers/migration_helper.php
execute_script() and executeScriptWithTransaction() are replaced by executeScript() with optional transaction handling, updated version extraction, conditional query execution, and rollback handling.
Updated migration call sites
app/Database/Migrations/*
Migration scripts now call executeScript(). 20250716170000_MissingConfigKeys.php passes true to enable transaction handling.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the version-number parsing fix for migration logs, which is a primary objective of the changeset.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch bugfix-version-logging-bug

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

coderabbitai[bot]

This comment was marked as off-topic.

@objecttothis
objecttothis merged commit 35f056c into master Aug 6, 2026
14 checks passed
@objecttothis
objecttothis deleted the bugfix-version-logging-bug branch August 6, 2026 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants