Closed shlomi-noach closed 6 months ago
@shlomi-noach Should we also have a bit more overarching issue that renames today break for online DDL? And track that separately? Maybe we'd want to one day fix that by having the correct schema knowledge but that this change is a stop-gap until we'd have that?
This was fixed by https://github.com/vitessio/vitess/pull/15106
Should we also have a bit more overarching issue that renames today break for online DDL? And track that separately?
Feature Description
Consider this scenario: a schema is being changed from
create table t(e enum('a', 'b', 'c'))
tocreate table t(e enum(''b', 'c', 'a'))
. The ordinals of the names'a'
,'b'
, and'c'
have all changed. Remember that in MySQL enum values are numeric and therefore this change causes unexpected behavior on the application side, where same'a'
value yields different stored numeric value. This kind of change is undesired and likely accidental.schemadiff
should have a way to prevent/error this type of change.Use Case(s)
-