Skip to content

Resolve: Create migration for column position change if a field position is changed in spec #58 #59

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

Conversation

SOHELAHMED7
Copy link
Member

@SOHELAHMED7 SOHELAHMED7 commented Sep 28, 2024

Partially fixes #58.

This pull request does not cover the case: lot of new columns are added, lot of columns are deleted and lot of columns are moved at different positions.

Because current state of library first compute all columns to create, drop and alter and then builds migrations (e.g. compiled languages).

In order to fix above issue, we should consider columns one by one and build its migration (e.g. interpreted languages). This will require lot of changes in current library and lot of changes in existing tests.

@SOHELAHMED7 SOHELAHMED7 requested a review from cebe September 28, 2024 06:06
@SOHELAHMED7 SOHELAHMED7 self-assigned this Sep 28, 2024
@SOHELAHMED7 SOHELAHMED7 changed the title Draft: Create migration for column position change if a field position is changed in spec #58 Resolve: Create migration for column position change if a field position is changed in spec #58 Oct 17, 2024
@SOHELAHMED7 SOHELAHMED7 marked this pull request as ready for review October 17, 2024 03:13
@cebe
Copy link
Member

cebe commented Nov 12, 2024

In order to fix above issue, we should consider columns one by one and build its migration (e.g. interpreted languages). This will require lot of changes in current library and lot of changes in existing tests.

lets keep it like this, order is not super important.

@SOHELAHMED7 SOHELAHMED7 merged commit ac05063 into master Nov 12, 2024
5 checks passed
@cebe cebe deleted the 58-create-migration-for-column-position-change-if-a-field-position-is-changed-in-spec branch November 12, 2024 16:21
@cebe
Copy link
Member

cebe commented Nov 12, 2024

Thank you!

@cebe
Copy link
Member

cebe commented Nov 12, 2024

FYI: I moved tests for this issue to a separate file: tests/unit/Issue58FixTest.php

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.

Create migration for column position change if a field position is changed in spec
2 participants