Skip to content

Commit b15e1f6

Browse files
committed
fix: blueprint relationships
Signed-off-by: matdave <[email protected]>
1 parent 47c6c3d commit b15e1f6

File tree

6 files changed

+156
-156
lines changed

6 files changed

+156
-156
lines changed

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

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
'package' => 'fred',
77
'version' => '2.0',
88
'table' => 'fred_blueprints',
9-
'tableMeta' =>
9+
'tableMeta' =>
1010
array (
1111
'engine' => 'InnoDB',
1212
),
13-
'fields' =>
13+
'fields' =>
1414
array (
1515
'name' => NULL,
1616
'uuid' => NULL,
@@ -23,47 +23,47 @@
2323
'createdBy' => 0,
2424
'data' => '',
2525
),
26-
'fieldMeta' =>
26+
'fieldMeta' =>
2727
array (
28-
'name' =>
28+
'name' =>
2929
array (
3030
'dbtype' => 'varchar',
3131
'precision' => '127',
3232
'phptype' => 'string',
3333
'null' => false,
3434
),
35-
'uuid' =>
35+
'uuid' =>
3636
array (
3737
'dbtype' => 'varchar',
3838
'precision' => '36',
3939
'phptype' => 'string',
4040
'null' => false,
4141
'index' => 'unique',
4242
),
43-
'description' =>
43+
'description' =>
4444
array (
4545
'dbtype' => 'varchar',
4646
'precision' => '255',
4747
'phptype' => 'string',
4848
'null' => false,
4949
'default' => '',
5050
),
51-
'image' =>
51+
'image' =>
5252
array (
5353
'dbtype' => 'text',
5454
'phptype' => 'string',
5555
'null' => false,
5656
'default' => '',
5757
),
58-
'category' =>
58+
'category' =>
5959
array (
6060
'dbtype' => 'int',
6161
'attributes' => 'unsigned',
6262
'precision' => '10',
6363
'phptype' => 'integer',
6464
'null' => false,
6565
),
66-
'rank' =>
66+
'rank' =>
6767
array (
6868
'dbtype' => 'int',
6969
'attributes' => 'unsigned',
@@ -72,7 +72,7 @@
7272
'null' => false,
7373
'default' => 0,
7474
),
75-
'complete' =>
75+
'complete' =>
7676
array (
7777
'dbtype' => 'tinyint',
7878
'attributes' => 'unsigned',
@@ -81,15 +81,15 @@
8181
'null' => false,
8282
'default' => 0,
8383
),
84-
'public' =>
84+
'public' =>
8585
array (
8686
'dbtype' => 'tinyint',
8787
'precision' => '1',
8888
'phptype' => 'boolean',
8989
'null' => false,
9090
'default' => 0,
9191
),
92-
'createdBy' =>
92+
'createdBy' =>
9393
array (
9494
'dbtype' => 'int',
9595
'attributes' => 'unsigned',
@@ -98,115 +98,115 @@
9898
'null' => false,
9999
'default' => 0,
100100
),
101-
'data' =>
101+
'data' =>
102102
array (
103103
'dbtype' => 'mediumtext',
104104
'phptype' => 'json',
105105
'null' => false,
106106
'default' => '',
107107
),
108108
),
109-
'fieldAliases' =>
109+
'fieldAliases' =>
110110
array (
111111
'content' => 'data',
112112
),
113-
'indexes' =>
113+
'indexes' =>
114114
array (
115-
'uuid' =>
115+
'uuid' =>
116116
array (
117117
'alias' => 'uuid',
118118
'primary' => false,
119119
'unique' => true,
120120
'type' => 'BTREE',
121-
'columns' =>
121+
'columns' =>
122122
array (
123-
'uuid' =>
123+
'uuid' =>
124124
array (
125125
'length' => '',
126126
'collation' => 'A',
127127
'null' => false,
128128
),
129129
),
130130
),
131-
'category' =>
131+
'category' =>
132132
array (
133133
'alias' => 'category',
134134
'primary' => false,
135135
'unique' => false,
136136
'type' => 'BTREE',
137-
'columns' =>
137+
'columns' =>
138138
array (
139-
'category' =>
139+
'category' =>
140140
array (
141141
'length' => '',
142142
'collation' => 'A',
143143
'null' => false,
144144
),
145145
),
146146
),
147-
'rank' =>
147+
'rank' =>
148148
array (
149149
'alias' => 'rank',
150150
'primary' => false,
151151
'unique' => false,
152152
'type' => 'BTREE',
153-
'columns' =>
153+
'columns' =>
154154
array (
155-
'rank' =>
155+
'rank' =>
156156
array (
157157
'length' => '',
158158
'collation' => 'A',
159159
'null' => false,
160160
),
161161
),
162162
),
163-
'complete' =>
163+
'complete' =>
164164
array (
165165
'alias' => 'complete',
166166
'primary' => false,
167167
'unique' => false,
168168
'type' => 'BTREE',
169-
'columns' =>
169+
'columns' =>
170170
array (
171-
'complete' =>
171+
'complete' =>
172172
array (
173173
'length' => '',
174174
'collation' => 'A',
175175
'null' => false,
176176
),
177177
),
178178
),
179-
'createdBy' =>
179+
'createdBy' =>
180180
array (
181181
'alias' => 'createdBy',
182182
'primary' => false,
183183
'unique' => false,
184184
'type' => 'BTREE',
185-
'columns' =>
185+
'columns' =>
186186
array (
187-
'createdBy' =>
187+
'createdBy' =>
188188
array (
189189
'length' => '',
190190
'collation' => 'A',
191191
'null' => false,
192192
),
193193
),
194194
),
195-
'name_category' =>
195+
'name_category' =>
196196
array (
197197
'alias' => 'name_category',
198198
'primary' => false,
199199
'unique' => true,
200200
'type' => 'BTREE',
201-
'columns' =>
201+
'columns' =>
202202
array (
203-
'name' =>
203+
'name' =>
204204
array (
205205
'length' => '',
206206
'collation' => 'A',
207207
'null' => false,
208208
),
209-
'category' =>
209+
'category' =>
210210
array (
211211
'length' => '',
212212
'collation' => 'A',
@@ -215,9 +215,9 @@
215215
),
216216
),
217217
),
218-
'composites' =>
218+
'composites' =>
219219
array (
220-
'BlueprintTemplatesAccess' =>
220+
'BlueprintTemplatesAccess' =>
221221
array (
222222
'class' => 'FredBlueprintTemplateAccess',
223223
'local' => 'id',
@@ -226,17 +226,17 @@
226226
'owner' => 'local',
227227
),
228228
),
229-
'aggregates' =>
229+
'aggregates' =>
230230
array (
231-
'User' =>
231+
'User' =>
232232
array (
233233
'class' => 'modUser',
234-
'local' => 'user',
234+
'local' => 'createdBy',
235235
'foreign' => 'id',
236236
'cardinality' => 'one',
237237
'owner' => 'foreign',
238238
),
239-
'Category' =>
239+
'Category' =>
240240
array (
241241
'class' => 'FredBlueprintCategory',
242242
'local' => 'category',

0 commit comments

Comments
 (0)