Blocks.php 9.29 KB
Newer Older
1
2
3
4
<?php

/**
 * @file
5
6
7
8
9
10
 * Contains \Drupal\migrate_drupal\Tests\Dump\Blocks.
 *
 * THIS IS A GENERATED FILE. DO NOT EDIT.
 *
 * @see cores/scripts/dump-database-d6.sh
 * @see https://www.drupal.org/sandbox/benjy/2405029
11
12
 */

13
namespace Drupal\migrate_drupal\Tests\Table\d6;
14

15
use Drupal\migrate_drupal\Tests\Dump\DrupalDumpBase;
16
17
18
19

/**
 * Generated file to represent the blocks table.
 */
20
class Blocks extends DrupalDumpBase {
21
22

  public function load() {
23
24
25
26
    $this->createTable("blocks", array(
      'primary key' => array(
        'bid',
      ),
27
28
29
30
      'fields' => array(
        'bid' => array(
          'type' => 'serial',
          'not null' => TRUE,
31
          'length' => '11',
32
33
34
35
        ),
        'module' => array(
          'type' => 'varchar',
          'not null' => TRUE,
36
          'length' => '64',
37
38
39
40
41
          'default' => '',
        ),
        'delta' => array(
          'type' => 'varchar',
          'not null' => TRUE,
42
          'length' => '32',
43
44
45
46
47
          'default' => '0',
        ),
        'theme' => array(
          'type' => 'varchar',
          'not null' => TRUE,
48
          'length' => '64',
49
50
51
52
53
          'default' => '',
        ),
        'status' => array(
          'type' => 'int',
          'not null' => TRUE,
54
55
          'length' => '4',
          'default' => '0',
56
57
58
59
        ),
        'weight' => array(
          'type' => 'int',
          'not null' => TRUE,
60
61
          'length' => '4',
          'default' => '0',
62
63
64
65
        ),
        'region' => array(
          'type' => 'varchar',
          'not null' => TRUE,
66
          'length' => '64',
67
68
69
70
71
          'default' => '',
        ),
        'custom' => array(
          'type' => 'int',
          'not null' => TRUE,
72
73
          'length' => '4',
          'default' => '0',
74
75
76
77
        ),
        'throttle' => array(
          'type' => 'int',
          'not null' => TRUE,
78
79
          'length' => '4',
          'default' => '0',
80
81
82
83
        ),
        'visibility' => array(
          'type' => 'int',
          'not null' => TRUE,
84
85
          'length' => '4',
          'default' => '0',
86
87
88
89
        ),
        'pages' => array(
          'type' => 'text',
          'not null' => TRUE,
90
          'length' => 100,
91
92
93
94
        ),
        'title' => array(
          'type' => 'varchar',
          'not null' => TRUE,
95
          'length' => '64',
96
97
98
99
100
          'default' => '',
        ),
        'cache' => array(
          'type' => 'int',
          'not null' => TRUE,
101
102
          'length' => '4',
          'default' => '1',
103
104
105
        ),
      ),
    ));
106
    $this->database->insert("blocks")->fields(array(
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
      'bid',
      'module',
      'delta',
      'theme',
      'status',
      'weight',
      'region',
      'custom',
      'throttle',
      'visibility',
      'pages',
      'title',
      'cache',
    ))
    ->values(array(
      'bid' => '1',
      'module' => 'user',
      'delta' => '0',
      'theme' => 'garland',
      'status' => '1',
      'weight' => '0',
      'region' => 'left',
      'custom' => '0',
      'throttle' => '0',
      'visibility' => '0',
      'pages' => '',
      'title' => '',
134
135
      'cache' => '-1',
    ))->values(array(
136
137
138
139
140
141
142
143
144
145
146
147
      'bid' => '2',
      'module' => 'user',
      'delta' => '1',
      'theme' => 'garland',
      'status' => '1',
      'weight' => '0',
      'region' => 'left',
      'custom' => '0',
      'throttle' => '0',
      'visibility' => '0',
      'pages' => '',
      'title' => '',
148
149
      'cache' => '-1',
    ))->values(array(
150
151
152
153
154
155
156
157
158
159
      'bid' => '3',
      'module' => 'system',
      'delta' => '0',
      'theme' => 'garland',
      'status' => '1',
      'weight' => '-5',
      'region' => 'footer',
      'custom' => '0',
      'throttle' => '0',
      'visibility' => '0',
160
      'pages' => 'node/1',
161
      'title' => '',
162
163
      'cache' => '-1',
    ))->values(array(
164
165
166
167
168
      'bid' => '4',
      'module' => 'comment',
      'delta' => '0',
      'theme' => 'garland',
      'status' => '0',
169
      'weight' => '-9',
170
171
172
173
174
175
      'region' => '',
      'custom' => '0',
      'throttle' => '0',
      'visibility' => '0',
      'pages' => '',
      'title' => '',
176
177
      'cache' => '1',
    ))->values(array(
178
179
180
181
182
183
184
185
186
187
188
189
      'bid' => '5',
      'module' => 'menu',
      'delta' => 'primary-links',
      'theme' => 'garland',
      'status' => '1',
      'weight' => '-5',
      'region' => 'header',
      'custom' => '0',
      'throttle' => '0',
      'visibility' => '0',
      'pages' => '',
      'title' => '',
190
191
      'cache' => '-1',
    ))->values(array(
192
193
194
195
196
      'bid' => '6',
      'module' => 'menu',
      'delta' => 'secondary-links',
      'theme' => 'garland',
      'status' => '0',
197
      'weight' => '-8',
198
199
200
201
202
203
      'region' => '',
      'custom' => '0',
      'throttle' => '0',
      'visibility' => '0',
      'pages' => '',
      'title' => '',
204
205
      'cache' => '-1',
    ))->values(array(
206
207
208
209
210
      'bid' => '7',
      'module' => 'node',
      'delta' => '0',
      'theme' => 'garland',
      'status' => '0',
211
      'weight' => '-7',
212
213
214
215
216
217
      'region' => '',
      'custom' => '0',
      'throttle' => '0',
      'visibility' => '0',
      'pages' => '',
      'title' => '',
218
219
      'cache' => '-1',
    ))->values(array(
220
221
222
223
      'bid' => '8',
      'module' => 'user',
      'delta' => '2',
      'theme' => 'garland',
224
225
226
      'status' => '1',
      'weight' => '-9',
      'region' => 'right',
227
228
229
230
231
      'custom' => '0',
      'throttle' => '0',
      'visibility' => '0',
      'pages' => '',
      'title' => '',
232
233
      'cache' => '1',
    ))->values(array(
234
235
236
237
      'bid' => '9',
      'module' => 'user',
      'delta' => '3',
      'theme' => 'garland',
238
239
240
      'status' => '1',
      'weight' => '-6',
      'region' => 'right',
241
242
243
244
245
      'custom' => '0',
      'throttle' => '0',
      'visibility' => '0',
      'pages' => '',
      'title' => '',
246
247
      'cache' => '-1',
    ))->values(array(
248
249
250
251
252
253
254
255
256
257
258
259
      'bid' => '10',
      'module' => 'block',
      'delta' => '1',
      'theme' => 'garland',
      'status' => '1',
      'weight' => '0',
      'region' => 'content',
      'custom' => '0',
      'throttle' => '0',
      'visibility' => '1',
      'pages' => '<front>',
      'title' => 'Static Block',
260
261
      'cache' => '-1',
    ))->values(array(
262
263
264
265
266
267
268
269
270
271
272
273
      'bid' => '11',
      'module' => 'block',
      'delta' => '2',
      'theme' => 'bluemarine',
      'status' => '1',
      'weight' => '-4',
      'region' => 'right',
      'custom' => '0',
      'throttle' => '0',
      'visibility' => '1',
      'pages' => 'node',
      'title' => 'Another Static Block',
274
275
      'cache' => '-1',
    ))->values(array(
276
277
278
279
280
281
282
283
284
285
286
287
      'bid' => '12',
      'module' => 'block',
      'delta' => '1',
      'theme' => 'test_theme',
      'status' => '1',
      'weight' => '-7',
      'region' => 'right',
      'custom' => '0',
      'throttle' => '0',
      'visibility' => '0',
      'pages' => '',
      'title' => '',
288
289
      'cache' => '-1',
    ))->values(array(
290
291
292
293
294
295
296
297
298
299
300
301
      'bid' => '13',
      'module' => 'block',
      'delta' => '2',
      'theme' => 'test_theme',
      'status' => '1',
      'weight' => '-2',
      'region' => 'left',
      'custom' => '0',
      'throttle' => '0',
      'visibility' => '0',
      'pages' => '',
      'title' => '',
302
303
304
305
306
307
308
      'cache' => '-1',
    ))->values(array(
      'bid' => '14',
      'module' => 'aggregator',
      'delta' => 'feed-5',
      'theme' => 'garland',
      'status' => '0',
309
      'weight' => '-2',
310
311
312
313
314
315
316
317
318
319
320
321
322
      'region' => '',
      'custom' => '0',
      'throttle' => '0',
      'visibility' => '0',
      'pages' => '',
      'title' => '',
      'cache' => '1',
    ))->values(array(
      'bid' => '15',
      'module' => 'block',
      'delta' => '2',
      'theme' => 'garland',
      'status' => '0',
323
      'weight' => '1',
324
325
326
327
328
329
330
331
332
333
334
335
336
      'region' => '',
      'custom' => '0',
      'throttle' => '0',
      'visibility' => '0',
      'pages' => '',
      'title' => '',
      'cache' => '-1',
    ))->values(array(
      'bid' => '16',
      'module' => 'profile',
      'delta' => '0',
      'theme' => 'garland',
      'status' => '0',
337
      'weight' => '-5',
338
339
340
341
342
343
344
345
346
347
348
349
350
      'region' => '',
      'custom' => '0',
      'throttle' => '0',
      'visibility' => '0',
      'pages' => '',
      'title' => '',
      'cache' => '5',
    ))->values(array(
      'bid' => '17',
      'module' => 'event',
      'delta' => '0',
      'theme' => 'garland',
      'status' => '0',
351
      'weight' => '-3',
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
      'region' => '',
      'custom' => '0',
      'throttle' => '0',
      'visibility' => '0',
      'pages' => '',
      'title' => '',
      'cache' => '1',
    ))->values(array(
      'bid' => '18',
      'module' => 'event',
      'delta' => '1',
      'theme' => 'garland',
      'status' => '0',
      'weight' => '0',
      'region' => '',
      'custom' => '0',
      'throttle' => '0',
      'visibility' => '0',
      'pages' => '',
      'title' => '',
      'cache' => '1',
    ))->values(array(
      'bid' => '19',
      'module' => 'event',
      'delta' => 'event-upcoming-event',
      'theme' => 'garland',
      'status' => '0',
379
      'weight' => '-1',
380
381
382
383
384
385
386
387
388
389
390
391
392
      'region' => '',
      'custom' => '0',
      'throttle' => '0',
      'visibility' => '0',
      'pages' => '',
      'title' => '',
      'cache' => '1',
    ))->values(array(
      'bid' => '20',
      'module' => 'book',
      'delta' => '0',
      'theme' => 'garland',
      'status' => '0',
393
      'weight' => '-4',
394
395
396
397
398
399
400
401
      'region' => '',
      'custom' => '0',
      'throttle' => '0',
      'visibility' => '0',
      'pages' => '',
      'title' => '',
      'cache' => '5',
    ))->execute();
402
  }
403

404
}