Projet

Général

Profil

Révision 582db59d

Ajouté par Assos Assos il y a plus de 8 ans

Update Drupal core to version 7.40

Voir les différences:

drupal7/modules/simpletest/tests/upgrade/drupal-6.upload.database.php
127 127
  'status' => '1',
128 128
  'timestamp' => '1285708958',
129 129
))
130
// On some Drupal 6 sites, more than one file can have the same filepath. See
131
// https://www.drupal.org/node/1260938.
132
->values(array(
133
  'fid' => '12',
134
  'uid' => '1',
135
  'filename' => 'duplicate-name.png',
136
  'filepath' => 'sites/default/files/duplicate-name.png',
137
  'filemime' => 'image/png',
138
  'filesize' => '314',
139
  'status' => '1',
140
  'timestamp' => '1285708958',
141
))
142
->values(array(
143
  'fid' => '13',
144
  'uid' => '1',
145
  'filename' => 'duplicate-name.png',
146
  'filepath' => 'sites/default/files/duplicate-name.png',
147
  'filemime' => 'image/png',
148
  'filesize' => '315',
149
  'status' => '1',
150
  'timestamp' => '1285708958',
151
))
152
->values(array(
153
  'fid' => '14',
154
  'uid' => '1',
155
  'filename' => 'duplicate-name.png',
156
  'filepath' => 'sites/default/files/duplicate-name.png',
157
  'filemime' => 'image/png',
158
  'filesize' => '316',
159
  'status' => '1',
160
  'timestamp' => '1285708958',
161
))
130 162
->execute();
131 163

  
132 164
db_insert('node')->fields(array(
......
196 228
  'sticky' => '0',
197 229
  'tnid' => '0',
198 230
  'translate' => '0',
231
))
232
->values(array(
233
  'nid' => '41',
234
  'vid' => '55',
235
  'type' => 'page',
236
  'language' => '',
237
  'title' => 'node title 41 revision 55',
238
  'uid' => '1',
239
  'status' => '1',
240
  'created' => '1285709012',
241
  'changed' => '1285709012',
242
  'comment' => '0',
243
  'promote' => '0',
244
  'moderate' => '0',
245
  'sticky' => '0',
246
  'tnid' => '0',
247
  'translate' => '0',
199 248
))
200 249
 ->execute();
201 250

  
......
253 302
  'log' => '',
254 303
  'timestamp' => '1285709012',
255 304
  'format' => '1',
305
))
306
->values(array(
307
  'nid' => '41',
308
  'vid' => '54',
309
  'uid' => '1',
310
  'title' => 'node title 41 revision 54',
311
  'body' => "Attachments:\r\nduplicate-name.png",
312
  'teaser' => "Attachments:\r\nduplicate-name.png",
313
  'log' => '',
314
  'timestamp' => '1285709012',
315
  'format' => '1',
316
))
317
->values(array(
318
  'nid' => '41',
319
  'vid' => '55',
320
  'uid' => '1',
321
  'title' => 'node title 41 revision 55',
322
  'body' => "Attachments:\r\nduplicate-name.png\r\nduplicate-name.png",
323
  'teaser' => "Attachments:\r\nduplicate-name.png\r\nduplicate-name.png",
324
  'log' => '',
325
  'timestamp' => '1285709012',
326
  'format' => '1',
256 327
))
257 328
 ->execute();
258 329

  
......
415 486
  'list' => '1',
416 487
  'weight' => '0',
417 488
))
489
->values(array(
490
  'fid' => '12',
491
  'nid' => '41',
492
  'vid' => '54',
493
  'description' => 'duplicate-name.png',
494
  'list' => '1',
495
  'weight' => '0',
496
))
497
->values(array(
498
  'fid' => '13',
499
  'nid' => '41',
500
  'vid' => '55',
501
  'description' => 'first description',
502
  'list' => '0',
503
  'weight' => '0',
504
))
505
->values(array(
506
  'fid' => '14',
507
  'nid' => '41',
508
  'vid' => '55',
509
  'description' => 'second description',
510
  'list' => '1',
511
  'weight' => '0',
512
))
418 513
->execute();
419 514

  
420 515
// Add series of entries for invalid node vids to the {upload} table.
......
431 526
  ->values(array(
432 527
    'fid' => $i,
433 528
    'nid' => '40',
434
    'vid' => 24 + $i,
529
    'vid' => 26 + $i,
435 530
    'description' => 'crazy-basename.png',
436 531
    'list' => '1',
437 532
    'weight' => '0',
......
440 535
  ->values(array(
441 536
    'fid' => 2,
442 537
    'nid' => '40',
443
    'vid' => 24 + $i + 1,
538
    'vid' => 26 + $i + 1,
444 539
    'description' => 'crazy-basename.png',
445 540
    'list' => '1',
446 541
    'weight' => '0',

Formats disponibles : Unified diff