Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #33 from miegs3/master

Allowing bytea columns to migrate by ignoring length
  • Loading branch information...
commit 4713f67df75cea9905b753766678da49481c67df 2 parents febf85b + f091e37
Piotr Solnica solnic authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/dm-migrations/adapters/dm-do-adapter.rb
2  lib/dm-migrations/adapters/dm-do-adapter.rb
@@ -202,7 +202,7 @@ def property_schema_hash(property)
202 202
203 203 schema_primitive = schema[:primitive]
204 204
205   - if dump_class.equal?(String) && schema_primitive != 'TEXT' && schema_primitive != 'CLOB' && schema_primitive != 'NVARCHAR'
  205 + if dump_class.equal?(String) && schema_primitive != 'TEXT' && schema_primitive != 'CLOB' && schema_primitive != 'NVARCHAR' && schema_primitive != 'BYTEA'
206 206 schema[:length] = property.length
207 207 elsif dump_class.equal?(BigDecimal) || dump_class.equal?(Float)
208 208 schema[:precision] = property.precision

0 comments on commit 4713f67

Please sign in to comment.
Something went wrong with that request. Please try again.