meadow-connection-mssql 1.0.22 → 1.0.23

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meadow-connection-mssql",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "Meadow MSSQL Plugin",
5
5
  "main": "source/Meadow-Connection-MSSQL.js",
6
6
  "scripts": {
@@ -148,7 +148,11 @@ class MeadowSchemaMSSQL extends libFableServiceProviderBase
148
148
  // previous VARCHAR(254) was inconsistent with later ALTER
149
149
  // migrations and caused every introspection-then-diff cycle
150
150
  // to re-alter the column.
151
- tmpCreateTableStatement += ` [${tmpColumn.Column}] NCHAR(${tmpColumn.Size || '36'}) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000'`;
151
+ //
152
+ // Default size is 255 — UUIDs need 36 but composite GUIDs
153
+ // from integration adapters often exceed that, and silent
154
+ // truncation manifests as missing rows downstream.
155
+ tmpCreateTableStatement += ` [${tmpColumn.Column}] NCHAR(${tmpColumn.Size || '255'}) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000'`;
152
156
  break;
153
157
  case 'ForeignKey':
154
158
  tmpCreateTableStatement += ` [${tmpColumn.Column}] INT NOT NULL DEFAULT 0`;