Skip to content

Commit e54a877

Browse files
committed
Fix the mysql map
Signed-off-by: matdave <[email protected]>
1 parent 34e21f2 commit e54a877

16 files changed

+340
-358
lines changed

_build/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"lowCaseName": "fred",
44
"description": "Frontend Editor",
55
"author": "John Peca",
6-
"version": "3.1.0-pl",
6+
"version": "3.1.1-pl",
77
"package": {
88
"menus": [
99
{

_build/gpm.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"lowCaseName": "fred",
44
"description": "Frontend Editor",
55
"author": "John Peca",
6-
"version": "3.1.0-pl",
6+
"version": "3.1.1-pl",
77
"menus": [
88
{
99
"text": "fred.menu.fred",

assets/components/fred/mgr/js/home/widgets/blueprints.grid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ fred.grid.Blueprints = function (config) {
7070
width: 70,
7171
renderer: function (value, metaData, record, rowIndex, colIndex, store) {
7272
return `<div class="fred-x-grid-cell-name">
73-
<h3><a href="?a=blueprint/update&namespace=fred&id=${record.data.id}"${value}</a></h3>
73+
<h3><a href="?a=blueprint/update&namespace=fred&id=${record.data.id}">${value}</a></h3>
7474
<small>${_('fred.global.uuid')}: ${record.data.uuid}</small>
7575
<small>${record.data.description}</small>
7676
</div>`;

core/components/fred/model/fred/mysql/fredblueprint.map.inc.php

Lines changed: 43 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,69 @@
11
<?php
2-
32
/**
43
* @package fred
54
*/
6-
7-
$xpdo_meta_map['FredBlueprint'] = array (
5+
$xpdo_meta_map['FredBlueprint']= array (
86
'package' => 'fred',
97
'version' => '2.0',
108
'table' => 'fred_blueprints',
11-
'tableMeta' =>
9+
'tableMeta' =>
1210
array (
1311
'engine' => 'InnoDB',
1412
),
15-
'fields' =>
13+
'fields' =>
1614
array (
17-
'name' => null,
18-
'uuid' => null,
15+
'name' => NULL,
16+
'uuid' => NULL,
1917
'description' => '',
2018
'image' => '',
21-
'category' => null,
19+
'category' => NULL,
2220
'rank' => 0,
2321
'complete' => 0,
2422
'public' => 0,
2523
'createdBy' => 0,
2624
'data' => '',
2725
),
28-
'fieldMeta' =>
26+
'fieldMeta' =>
2927
array (
30-
'name' =>
28+
'name' =>
3129
array (
3230
'dbtype' => 'varchar',
3331
'precision' => '127',
3432
'phptype' => 'string',
3533
'null' => false,
3634
),
37-
'uuid' =>
35+
'uuid' =>
3836
array (
3937
'dbtype' => 'varchar',
4038
'precision' => '36',
4139
'phptype' => 'string',
4240
'null' => false,
4341
'index' => 'unique',
4442
),
45-
'description' =>
43+
'description' =>
4644
array (
4745
'dbtype' => 'varchar',
4846
'precision' => '255',
4947
'phptype' => 'string',
5048
'null' => false,
5149
'default' => '',
5250
),
53-
'image' =>
51+
'image' =>
5452
array (
5553
'dbtype' => 'text',
5654
'phptype' => 'string',
5755
'null' => false,
5856
'default' => '',
5957
),
60-
'category' =>
58+
'category' =>
6159
array (
6260
'dbtype' => 'int',
6361
'attributes' => 'unsigned',
6462
'precision' => '10',
6563
'phptype' => 'integer',
6664
'null' => false,
6765
),
68-
'rank' =>
66+
'rank' =>
6967
array (
7068
'dbtype' => 'int',
7169
'attributes' => 'unsigned',
@@ -74,7 +72,7 @@
7472
'null' => false,
7573
'default' => 0,
7674
),
77-
'complete' =>
75+
'complete' =>
7876
array (
7977
'dbtype' => 'tinyint',
8078
'attributes' => 'unsigned',
@@ -83,15 +81,15 @@
8381
'null' => false,
8482
'default' => 0,
8583
),
86-
'public' =>
84+
'public' =>
8785
array (
8886
'dbtype' => 'tinyint',
8987
'precision' => '1',
9088
'phptype' => 'boolean',
9189
'null' => false,
9290
'default' => 0,
9391
),
94-
'createdBy' =>
92+
'createdBy' =>
9593
array (
9694
'dbtype' => 'int',
9795
'attributes' => 'unsigned',
@@ -100,115 +98,115 @@
10098
'null' => false,
10199
'default' => 0,
102100
),
103-
'data' =>
101+
'data' =>
104102
array (
105103
'dbtype' => 'mediumtext',
106104
'phptype' => 'json',
107105
'null' => false,
108106
'default' => '',
109107
),
110108
),
111-
'fieldAliases' =>
109+
'fieldAliases' =>
112110
array (
113111
'content' => 'data',
114112
),
115-
'indexes' =>
113+
'indexes' =>
116114
array (
117-
'uuid' =>
115+
'uuid' =>
118116
array (
119117
'alias' => 'uuid',
120118
'primary' => false,
121119
'unique' => true,
122120
'type' => 'BTREE',
123-
'columns' =>
121+
'columns' =>
124122
array (
125-
'uuid' =>
123+
'uuid' =>
126124
array (
127125
'length' => '',
128126
'collation' => 'A',
129127
'null' => false,
130128
),
131129
),
132130
),
133-
'category' =>
131+
'category' =>
134132
array (
135133
'alias' => 'category',
136134
'primary' => false,
137135
'unique' => false,
138136
'type' => 'BTREE',
139-
'columns' =>
137+
'columns' =>
140138
array (
141-
'category' =>
139+
'category' =>
142140
array (
143141
'length' => '',
144142
'collation' => 'A',
145143
'null' => false,
146144
),
147145
),
148146
),
149-
'rank' =>
147+
'rank' =>
150148
array (
151149
'alias' => 'rank',
152150
'primary' => false,
153151
'unique' => false,
154152
'type' => 'BTREE',
155-
'columns' =>
153+
'columns' =>
156154
array (
157-
'rank' =>
155+
'rank' =>
158156
array (
159157
'length' => '',
160158
'collation' => 'A',
161159
'null' => false,
162160
),
163161
),
164162
),
165-
'complete' =>
163+
'complete' =>
166164
array (
167165
'alias' => 'complete',
168166
'primary' => false,
169167
'unique' => false,
170168
'type' => 'BTREE',
171-
'columns' =>
169+
'columns' =>
172170
array (
173-
'complete' =>
171+
'complete' =>
174172
array (
175173
'length' => '',
176174
'collation' => 'A',
177175
'null' => false,
178176
),
179177
),
180178
),
181-
'createdBy' =>
179+
'createdBy' =>
182180
array (
183181
'alias' => 'createdBy',
184182
'primary' => false,
185183
'unique' => false,
186184
'type' => 'BTREE',
187-
'columns' =>
185+
'columns' =>
188186
array (
189-
'createdBy' =>
187+
'createdBy' =>
190188
array (
191189
'length' => '',
192190
'collation' => 'A',
193191
'null' => false,
194192
),
195193
),
196194
),
197-
'name_category' =>
195+
'name_category' =>
198196
array (
199197
'alias' => 'name_category',
200198
'primary' => false,
201199
'unique' => true,
202200
'type' => 'BTREE',
203-
'columns' =>
201+
'columns' =>
204202
array (
205-
'name' =>
203+
'name' =>
206204
array (
207205
'length' => '',
208206
'collation' => 'A',
209207
'null' => false,
210208
),
211-
'category' =>
209+
'category' =>
212210
array (
213211
'length' => '',
214212
'collation' => 'A',
@@ -217,9 +215,9 @@
217215
),
218216
),
219217
),
220-
'composites' =>
218+
'composites' =>
221219
array (
222-
'BlueprintTemplatesAccess' =>
220+
'BlueprintTemplatesAccess' =>
223221
array (
224222
'class' => 'FredBlueprintTemplateAccess',
225223
'local' => 'id',
@@ -228,17 +226,17 @@
228226
'owner' => 'local',
229227
),
230228
),
231-
'aggregates' =>
229+
'aggregates' =>
232230
array (
233-
'User' =>
231+
'User' =>
234232
array (
235233
'class' => 'modUser',
236234
'local' => 'user',
237235
'foreign' => 'id',
238236
'cardinality' => 'one',
239237
'owner' => 'foreign',
240238
),
241-
'Category' =>
239+
'Category' =>
242240
array (
243241
'class' => 'FredBlueprintCategory',
244242
'local' => 'category',

0 commit comments

Comments
 (0)