mikro-orm-temporal 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,7 +37,7 @@ export class InstantType extends Type {
37
37
  getColumnType(prop, platform) {
38
38
  if (isMsSql(platform)) {
39
39
  // MSSQL has a true single-purpose column type for timestamps with offset.
40
- return "DATETIMEOFFSET";
40
+ return "datetimeoffset(7)";
41
41
  }
42
42
  return platform.getDateTimeTypeDeclarationSQL({ length: prop.length });
43
43
  }
@@ -37,7 +37,7 @@ export class OffsetDateTimeType extends Type {
37
37
  getColumnType(prop, platform) {
38
38
  if (isMsSql(platform)) {
39
39
  // MSSQL has a true single-purpose column type for timestamps with offset.
40
- return "DATETIMEOFFSET";
40
+ return "datetimeoffset(7)";
41
41
  }
42
42
  return platform.getDateTimeTypeDeclarationSQL({ length: prop.length });
43
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mikro-orm-temporal",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Temporal types for Mikro ORM",
5
5
  "type": "module",
6
6
  "author": "Ben Scholzen 'DASPRiD'",