Skip to content

Cant migrate tables with text column unique keys #1582

@markmarkmarkthebest

Description

@markmarkmarkthebest

When running a DDL to migrate a table with a text column that is a unique key gh-ost fails to apply update DML events.
It fails in the updateModifiesUniqueKeyColumns function in applier.go method. That is because text columns are mapped to unit8[] slices which cannot be compared using '!=':

if newColumnValue != whereColumnValue {

That leads to a connection close and then no more DML events are handled for the table anymore.

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