Skip to content
  • Ryuta Kamizono's avatar
    86a9b367
    Remove unused `limit` on `enum` and `set` columns in MySQL · 86a9b367
    Ryuta Kamizono authored
    Before #36604, `enum` and `set` columns were incorrectly dumped as a
    `string` column.
    
    If an `enum` column is defined as `foo enum('apple','orange')`, it was
    dumped as `t.string :foo, limit: 6`, the `limit: 6` is seemed to
    restrict invalid string longer than `'orange'`.
    
    But now, `enum` and `set` columns are correctly dumped as `enum` and
    `set` columns, the limit as longest element is no longer used.
    86a9b367
    Remove unused `limit` on `enum` and `set` columns in MySQL
    Ryuta Kamizono authored
    Before #36604, `enum` and `set` columns were incorrectly dumped as a
    `string` column.
    
    If an `enum` column is defined as `foo enum('apple','orange')`, it was
    dumped as `t.string :foo, limit: 6`, the `limit: 6` is seemed to
    restrict invalid string longer than `'orange'`.
    
    But now, `enum` and `set` columns are correctly dumped as `enum` and
    `set` columns, the limit as longest element is no longer used.
Loading