Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Commit

Permalink
Merge pull request #33 from miegs3/master
Browse files Browse the repository at this point in the history
Allowing bytea columns to migrate by ignoring length
  • Loading branch information
solnic committed Oct 9, 2011
2 parents febf85b + f091e37 commit 4713f67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dm-migrations/adapters/dm-do-adapter.rb
Expand Up @@ -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
Expand Down

0 comments on commit 4713f67

Please sign in to comment.