Skip to content

allow ignoring comments in migration checksum #3909

@siosw

Description

@siosw

I have found these related issues/pull requests

/

Description

currently migration checksums include comments, this makes it hard to change them once a migration has been applied. sometimes this is nice to add more context later etc.

Prefered solution

add some logic filtering out comments here:
https://github.com/launchbadge/sqlx/blob/764ae2f702b15748c56a46a67dc80d719a2977ec/sqlx-core/src/migrate/source.rs#L118

Is this a breaking change? Why or why not?

this would break existing migration checksums so it should be behind a feature flag

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions