File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/Migrator/Providers/Impl/SqlServer Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -452,11 +452,11 @@ public override Column[] GetColumns(string table)
452452
453453 if ( column . Type == DbType . Int16 || column . Type == DbType . Int32 || column . Type == DbType . Int64 )
454454 {
455- column . DefaultValue = long . Parse ( bracesStrippedString , CultureInfo . InvariantCulture ) ;
455+ column . DefaultValue = long . Parse ( bracesAndSingleQuoteStrippedString , CultureInfo . InvariantCulture ) ;
456456 }
457457 else if ( column . Type == DbType . UInt16 || column . Type == DbType . UInt32 || column . Type == DbType . UInt64 )
458458 {
459- column . DefaultValue = ulong . Parse ( bracesStrippedString , CultureInfo . InvariantCulture ) ;
459+ column . DefaultValue = ulong . Parse ( bracesAndSingleQuoteStrippedString , CultureInfo . InvariantCulture ) ;
460460 }
461461 else if ( column . Type == DbType . Double || column . Type == DbType . Single )
462462 {
@@ -521,7 +521,7 @@ public override Column[] GetColumns(string table)
521521 else if ( column . MigratorDbType == MigratorDbType . Decimal )
522522 {
523523 // We assume ((1.234))
524- column . DefaultValue = decimal . Parse ( bracesStrippedString , CultureInfo . InvariantCulture ) ;
524+ column . DefaultValue = decimal . Parse ( bracesAndSingleQuoteStrippedString , CultureInfo . InvariantCulture ) ;
525525 }
526526 else if ( column . MigratorDbType == MigratorDbType . String )
527527 {
@@ -546,7 +546,7 @@ public override Column[] GetColumns(string table)
546546 }
547547 else if ( column . MigratorDbType == MigratorDbType . Byte )
548548 {
549- column . DefaultValue = byte . Parse ( bracesStrippedString ) ;
549+ column . DefaultValue = byte . Parse ( bracesAndSingleQuoteStrippedString ) ;
550550 }
551551 else
552552 {
You can’t perform that action at this time.
0 commit comments