Skip to content

Commit f6fef57

Browse files
committed
Merge pull request #88 from vladson/patch-1
Add geometry column type
2 parents f7410cd + 4f5ff70 commit f6fef57

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: lib/mysql2psql/postgres_writer.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ def column_type_info(column)
9898
"character varying(#{max_enum_size}) check( \"#{column[:name]}\" in (#{enum}))"
9999
when 'multipolygon'
100100
'geometry'
101+
when 'geometry'
102+
'geometry'
101103
else
102104
puts "Unknown #{column.inspect}"
103105
column[:type].inspect
@@ -137,4 +139,4 @@ def process_row(table, row)
137139
def truncate(_table)
138140
end
139141
end
140-
end
142+
end

0 commit comments

Comments
 (0)