Permalink
Browse files

[Contrib][T4] Fix Binary(MAX)

  • Loading branch information...
1 parent 23e14f8 commit beb24f1d0b3a2c53c5e759ed43d70c8c9c4d87de @spaccabit committed Dec 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/FluentMigrator.T4/CodeGenerator.cs
@@ -262,7 +262,7 @@ public string GetMigrationTypeFunctionForType(Column col)
sysType = string.Format("AsFixedLengthAnsiString({0})", sizeStr);
break;
case System.Data.DbType.Binary:
- sysType = string.Format("AsBinary({0})", sizeStr);
+ sysType = string.Format("AsBinary({0})", size == -1 ? "Int32.MaxValue" : sizeStr);
break;
case System.Data.DbType.Boolean:
sysType = "AsBoolean()";

0 comments on commit beb24f1

Please sign in to comment.