meadow-connection-mysql 1.0.11 → 1.0.14

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-mysql",
3
- "version": "1.0.11",
3
+ "version": "1.0.14",
4
4
  "description": "Meadow MySQL Plugin",
5
5
  "main": "source/Meadow-Connection-MySQL.js",
6
6
  "scripts": {
@@ -74,7 +74,6 @@ class MeadowSchemaMySQL extends libFableServiceProviderBase
74
74
  break;
75
75
  case 'ForeignKey':
76
76
  tmpCreateTableStatement += ` ${tmpColumn.Column} INT UNSIGNED NOT NULL DEFAULT '0'`;
77
- tmpPrimaryKey = tmpColumn.Column;
78
77
  break;
79
78
  case 'Numeric':
80
79
  tmpCreateTableStatement += ` ${tmpColumn.Column} INT NOT NULL DEFAULT '0'`;
@@ -94,6 +93,12 @@ class MeadowSchemaMySQL extends libFableServiceProviderBase
94
93
  case 'Boolean':
95
94
  tmpCreateTableStatement += ` ${tmpColumn.Column} TINYINT NOT NULL DEFAULT '0'`;
96
95
  break;
96
+ case 'JSON':
97
+ tmpCreateTableStatement += ` ${tmpColumn.Column} LONGTEXT`;
98
+ break;
99
+ case 'JSONProxy':
100
+ tmpCreateTableStatement += ` ${tmpColumn.StorageColumn} LONGTEXT`;
101
+ break;
97
102
  default:
98
103
  break;
99
104
  }
@@ -1031,6 +1036,10 @@ class MeadowSchemaMySQL extends libFableServiceProviderBase
1031
1036
  return 'DateTime';
1032
1037
  case 'Boolean':
1033
1038
  return 'Boolean';
1039
+ case 'JSON':
1040
+ return 'JSON';
1041
+ case 'JSONProxy':
1042
+ return 'JSONProxy';
1034
1043
  default:
1035
1044
  return 'String';
1036
1045
  }
@@ -1064,6 +1073,10 @@ class MeadowSchemaMySQL extends libFableServiceProviderBase
1064
1073
  return '';
1065
1074
  case 'Boolean':
1066
1075
  return false;
1076
+ case 'JSON':
1077
+ return {};
1078
+ case 'JSONProxy':
1079
+ return {};
1067
1080
  default:
1068
1081
  return '';
1069
1082
  }
@@ -49,7 +49,7 @@ const _BookTableSchema =
49
49
  [
50
50
  { Column: 'IDBook', DataType: 'ID' },
51
51
  { Column: 'GUIDBook', DataType: 'GUID' },
52
- { Column: 'Title', DataType: 'String', Size: '256' },
52
+ { Column: 'Title', DataType: 'String', Size: '255' },
53
53
  { Column: 'Description', DataType: 'Text' },
54
54
  { Column: 'Price', DataType: 'Decimal', Size: '10,2' },
55
55
  { Column: 'IDAuthor', DataType: 'ForeignKey' }
@@ -63,7 +63,7 @@ const _BookTableSchemaWithColumnIndexed =
63
63
  [
64
64
  { Column: 'IDBook', DataType: 'ID' },
65
65
  { Column: 'GUIDBook', DataType: 'GUID' },
66
- { Column: 'Title', DataType: 'String', Size: '256', Indexed: true },
66
+ { Column: 'Title', DataType: 'String', Size: '255', Indexed: true },
67
67
  { Column: 'Email', DataType: 'String', Size: '512', Indexed: 'unique' },
68
68
  { Column: 'IDAuthor', DataType: 'ForeignKey' }
69
69
  ]
@@ -76,7 +76,7 @@ const _BookTableSchemaWithIndexName =
76
76
  [
77
77
  { Column: 'IDBookCustomIdx', DataType: 'ID' },
78
78
  { Column: 'GUIDBookCustomIdx', DataType: 'GUID' },
79
- { Column: 'Title', DataType: 'String', Size: '256', Indexed: true, IndexName: 'IX_Custom_Title' },
79
+ { Column: 'Title', DataType: 'String', Size: '255', Indexed: true, IndexName: 'IX_Custom_Title' },
80
80
  { Column: 'Email', DataType: 'String', Size: '512', Indexed: 'unique', IndexName: 'UQ_BookCustomIdx_Email' },
81
81
  { Column: 'Rating', DataType: 'Numeric', Indexed: true },
82
82
  { Column: 'IDAuthor', DataType: 'ForeignKey' }
@@ -91,7 +91,7 @@ const _IntrospectBookSchema =
91
91
  [
92
92
  { Column: 'IDIntrospBook', DataType: 'ID' },
93
93
  { Column: 'GUIDIntrospBook', DataType: 'GUID' },
94
- { Column: 'Title', DataType: 'String', Size: '256' },
94
+ { Column: 'Title', DataType: 'String', Size: '255' },
95
95
  { Column: 'Description', DataType: 'Text' },
96
96
  { Column: 'Price', DataType: 'Decimal', Size: '10,2' },
97
97
  { Column: 'PageCount', DataType: 'Numeric' },
@@ -108,7 +108,7 @@ const _IntrospectBookIndexedSchema =
108
108
  [
109
109
  { Column: 'IDIntrospBookIdx', DataType: 'ID' },
110
110
  { Column: 'GUIDIntrospBookIdx', DataType: 'GUID' },
111
- { Column: 'Title', DataType: 'String', Size: '256', Indexed: true },
111
+ { Column: 'Title', DataType: 'String', Size: '255', Indexed: true },
112
112
  { Column: 'Description', DataType: 'Text' },
113
113
  { Column: 'ISBN', DataType: 'String', Size: '64', Indexed: 'unique' },
114
114
  { Column: 'IDPublisher', DataType: 'ForeignKey' }
@@ -122,7 +122,7 @@ const _IntrospectBookCustomIdxSchema =
122
122
  [
123
123
  { Column: 'IDIntrospBookCustIdx', DataType: 'ID' },
124
124
  { Column: 'GUIDIntrospBookCustIdx', DataType: 'GUID' },
125
- { Column: 'Title', DataType: 'String', Size: '256', Indexed: true, IndexName: 'IX_Custom_Title' },
125
+ { Column: 'Title', DataType: 'String', Size: '255', Indexed: true, IndexName: 'IX_Custom_Title' },
126
126
  { Column: 'ISBN', DataType: 'String', Size: '64', Indexed: 'unique', IndexName: 'UQ_IntrospBookCustIdx_ISBN' },
127
127
  { Column: 'YearPublished', DataType: 'Numeric', Indexed: true },
128
128
  { Column: 'IDEditor', DataType: 'ForeignKey' }
package/1 DELETED
@@ -1,10 +0,0 @@
1
- NPM Version bump
2
- # Please enter the commit message for your changes. Lines starting
3
- # with '#' will be ignored, and an empty message aborts the commit.
4
- #
5
- # On branch main
6
- # Your branch is up to date with 'origin/main'.
7
- #
8
- # Changes to be committed:
9
- # modified: package.json
10
- #