Skip to content

Commit

Permalink
uint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jogibear9988 committed Oct 24, 2013
1 parent 3dd5ed9 commit 5b62e45
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Migrator.Providers/Impl/Mysql/MysqlDialect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ public MysqlDialect()
RegisterColumnType(DbType.Guid, "VARCHAR(40)");
RegisterColumnType(DbType.Int16, "SMALLINT");
RegisterColumnType(DbType.Int32, "INTEGER");
RegisterColumnType(DbType.Int64, "BIGINT");
RegisterColumnType(DbType.Int64, "BIGINT");
RegisterColumnType(DbType.UInt16, "INTEGER");
RegisterColumnType(DbType.UInt32, "BIGINT");
RegisterColumnType(DbType.UInt64, "NUMERIC(20,0)");
RegisterColumnType(DbType.Single, "FLOAT");
RegisterColumnType(DbType.StringFixedLength, "CHAR(255)");
RegisterColumnType(DbType.StringFixedLength, 255, "CHAR($l)");
Expand Down
3 changes: 3 additions & 0 deletions src/Migrator.Providers/Impl/PostgreSQL/PostgreSQLDialect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public PostgreSQLDialect()
RegisterColumnType(DbType.Int16, "int2");
RegisterColumnType(DbType.Int32, "int4");
RegisterColumnType(DbType.Int64, "int8");
RegisterColumnType(DbType.UInt16, "int4");
RegisterColumnType(DbType.UInt32, "int8");
RegisterColumnType(DbType.UInt64, "decimal(20,0)");
RegisterColumnType(DbType.Single, "float4");
RegisterColumnType(DbType.StringFixedLength, "char(255)");
RegisterColumnType(DbType.StringFixedLength, 4000, "char($l)");
Expand Down
3 changes: 3 additions & 0 deletions src/Migrator.Providers/Impl/SqlServer/SqlServerDialect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ public SqlServerDialect()
RegisterColumnType(DbType.Int16, "SMALLINT");
RegisterColumnType(DbType.Int32, "INT");
RegisterColumnType(DbType.Int64, "BIGINT");
RegisterColumnType(DbType.UInt16, "INT");
RegisterColumnType(DbType.UInt32, "BIGINT");
RegisterColumnType(DbType.UInt64, "DECIMAL(20,0)");
RegisterColumnType(DbType.Single, "REAL"); //synonym for FLOAT(24)
RegisterColumnType(DbType.StringFixedLength, "NCHAR(255)");
RegisterColumnType(DbType.StringFixedLength, int.MaxValue - 1, "NCHAR($l)");
Expand Down

0 comments on commit 5b62e45

Please sign in to comment.