Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ignore the length property for bytea columns.

  • Loading branch information...
commit f091e37dbc8982b70c7743c3190ab65c2785c9f6 1 parent febf85b
@miegs3 miegs3 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/dm-migrations/adapters/dm-do-adapter.rb
View
2  lib/dm-migrations/adapters/dm-do-adapter.rb
@@ -202,7 +202,7 @@ def property_schema_hash(property)
schema_primitive = schema[:primitive]
- if dump_class.equal?(String) && schema_primitive != 'TEXT' && schema_primitive != 'CLOB' && schema_primitive != 'NVARCHAR'
+ if dump_class.equal?(String) && schema_primitive != 'TEXT' && schema_primitive != 'CLOB' && schema_primitive != 'NVARCHAR' && schema_primitive != 'BYTEA'
schema[:length] = property.length
elsif dump_class.equal?(BigDecimal) || dump_class.equal?(Float)
schema[:precision] = property.precision
Please sign in to comment.
Something went wrong with that request. Please try again.