meadow-connection-mysql 1.0.18 → 1.0.19
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
|
@@ -64,11 +64,13 @@ class MeadowSchemaMySQL extends libFableServiceProviderBase
|
|
|
64
64
|
tmpPrimaryKey = tmpColumn.Column;
|
|
65
65
|
break;
|
|
66
66
|
case 'GUID':
|
|
67
|
-
|
|
67
|
+
// Default GUID column width is 255 — UUIDs need 36 but
|
|
68
|
+
// composite GUIDs from integration adapters often exceed
|
|
69
|
+
// that. Wider default avoids silent truncation.
|
|
70
|
+
let tmpSize = tmpColumn.hasOwnProperty('Size') ? tmpColumn.Size : 255;
|
|
68
71
|
if (isNaN(tmpSize))
|
|
69
72
|
{
|
|
70
|
-
|
|
71
|
-
tmpSize = 36;
|
|
73
|
+
tmpSize = 255;
|
|
72
74
|
}
|
|
73
75
|
tmpCreateTableStatement += ` ${tmpColumn.Column} CHAR(${tmpSize}) DEFAULT '0xDe'`;
|
|
74
76
|
break;
|