Skip to content

Handle schema merge for column and FK drop automatically #6393

@fulghum

Description

@fulghum

A customer hit a schema merge conflict because their table had dropped a column, an index, and a foreign key. This is a case that Dolt should be able to merge automatically, but for some reason, the merge reported it as a schema conflict and did not allow the user to use the new automatic schema resolution tooling.

Part of the problem here is that we hit the old schema merge guard we had in place before we added support for automatic schema merging. PR #6349 removes that guard, but needs a little more testing to make sure all the cases there are covered by the schema conflict resolution code. Once this is removed, the schema merge code may be able to automatically handle this merge without requiring user intervention.

Next steps:

  • complete the work in Removing old schema merge guard  #6349 to remove the old schema merge guard
  • add a new test for a merge where a column, an index on the column, and an FK for the column are dropped on one side of the merge
  • get the test case above to merge automatically without requiring manual schema altering

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions