Skip to content

feat: migrations lock #9660

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

Open
wants to merge 5 commits into
base: 4.7
Choose a base branch
from

Conversation

michalsn
Copy link
Member

@michalsn michalsn commented Aug 4, 2025

Description
This PR introduces a database-agnostic locking system for migrations. It guarantees consistent behavior across all supported databases. Lock cleanup is safe and automatically handled through finally blocks, and there are no modifications to the public API, ensuring full compatibility with existing workflows.

Closes #9646

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@michalsn michalsn added enhancement PRs that improve existing functionalities 4.7 labels Aug 4, 2025
@paulbalandan
Copy link
Member

This should also need to be added in the upgrading under Config section telling people to add the new property.

@michalsn
Copy link
Member Author

michalsn commented Aug 4, 2025

Updated.

Copy link
Member

@paulbalandan paulbalandan left a comment

Choose a reason for hiding this comment

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

Thanks! Looks good.

@michalsn michalsn linked an issue Aug 8, 2025 that may be closed by this pull request
@github-actions github-actions bot added the stale Pull requests with conflicts label Aug 13, 2025
@michalsn michalsn force-pushed the feat/migration-lock branch from 6d5e47a to e562dd3 Compare August 13, 2025 05:23
@michalsn michalsn removed the stale Pull requests with conflicts label Aug 13, 2025
@codeigniter4 codeigniter4 deleted a comment from github-actions bot Aug 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.7 enhancement PRs that improve existing functionalities
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feat: Migration lock at the start of migration in CodeIgniter 4
3 participants