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
|
@@ -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
|
-
|
|
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`;
|