Skip to content

Commit

Permalink
Nullify MySQL comments if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Bahanix committed Nov 11, 2024
1 parent d8753a0 commit fa1ad45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/sequel/adapters/shared/mysql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@ def schema_parse_table(table_name, opts)
end
row[:allow_null] = row.delete(:Null) == 'YES'
row[:comment] = row.delete(:Comment)
row[:comment] = nil if row[:comment] == ""
row[:default] = row.delete(:Default)
row[:db_type] = row.delete(:Type)
row[:type] = schema_column_type(row[:db_type])
Expand Down

0 comments on commit fa1ad45

Please sign in to comment.