Skip to content

refactor(executor): reduce statements in migrate method#2230

Open
eujuliomorais wants to merge 1 commit into
tortoise:developfrom
eujuliomorais:refactor/too-many-statements
Open

refactor(executor): reduce statements in migrate method#2230
eujuliomorais wants to merge 1 commit into
tortoise:developfrom
eujuliomorais:refactor/too-many-statements

Conversation

@eujuliomorais

Copy link
Copy Markdown

Description

This PR refactors MigrationExecutor.migrate to address R0915 (too-many-statements). The logic was extracted into private helper methods to improve modularity.

Motivation and Context

The original method was handling too many responsibilities, making it hard to maintain and increasing cognitive load.

How Has This Been Tested?

  • Ran the existing migration test suite in a local environment.
  • Verified that all functional requirements are still met.

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added the changelog accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

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.

1 participant