Skip to content

Fixed migration generation for tuples containing records that need migration #53

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 3 commits into
base: lamdera-next
Choose a base branch
from

Conversation

hansallis
Copy link

Quick Summary: Fixed migration generation for tuples containing records that need migration

A migration including a type like

type alias User =
    ( Int, { name : String, userType : UserType, parents: ( { name : String, userType : UserType }, { name : String, userType : UserType } ) } )

would result in invalid Elm code being generated. Test is included under the Lamdera.Evergreen.TestMigrationGenerator -> test.

hansallis added 2 commits May 29, 2025 19:27
…wrapping for tuple migrations to handle nested structures.

Updated migration tests to reflect these changes.
Copy link
Member

@miniBill miniBill left a comment

Choose a reason for hiding this comment

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

Seems correct

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.

2 participants