From fa1ad456ce71ddc487f458b95ac867030391d59a Mon Sep 17 00:00:00 2001 From: Julien <364924+Bahanix@users.noreply.github.com> Date: Mon, 11 Nov 2024 12:33:14 +0100 Subject: [PATCH] Nullify MySQL comments if empty --- lib/sequel/adapters/shared/mysql.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/sequel/adapters/shared/mysql.rb b/lib/sequel/adapters/shared/mysql.rb index 9d5e91228..35d93a299 100644 --- a/lib/sequel/adapters/shared/mysql.rb +++ b/lib/sequel/adapters/shared/mysql.rb @@ -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])