Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Versioned migrations do not work with GlobalUniqueIDΒ #2587

@masseelch

Description

@masseelch

Suppose trying to generate versioned migrations files for a global unique id enabled schema:

client.Schema.Diff(ctx, schema.WithDir(dir), schema.WithGlobalUniqueID(true))

will result into the following error:

insert into ent_types: Error 1146: Table 'migrate.ent_types' doesn't exist
  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

There is an error.

Expected Behavior πŸ€”

A new set of migration files are created that also allocate the correct ranges for the primary keys.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions