From 766e06742c2f90d372be6f08826622526637df2e Mon Sep 17 00:00:00 2001 From: webchick Date: Mon, 29 Oct 2012 18:55:12 -0700 Subject: Issue #1586542 by BTMash, carwin, xjm, gwulo: Fixed d6 to d7 upgrade stuck at update #7061. --- .../tests/upgrade/drupal-6.upload.database.php | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'modules/simpletest/tests') diff --git a/modules/simpletest/tests/upgrade/drupal-6.upload.database.php b/modules/simpletest/tests/upgrade/drupal-6.upload.database.php index c7f032ecb..46ebe2cb0 100644 --- a/modules/simpletest/tests/upgrade/drupal-6.upload.database.php +++ b/modules/simpletest/tests/upgrade/drupal-6.upload.database.php @@ -416,3 +416,34 @@ db_insert('upload')->fields(array( 'weight' => '0', )) ->execute(); + +// Add series of entries for invalid node vids to the {upload} table. +for ($i = 30; $i < 250; $i += 2) { + db_insert('upload')->fields(array( + 'fid', + 'nid', + 'vid', + 'description', + 'list', + 'weight', + )) + // Invalid fid, invalid vid. + ->values(array( + 'fid' => $i, + 'nid' => '40', + 'vid' => 24 + $i, + 'description' => 'crazy-basename.png', + 'list' => '1', + 'weight' => '0', + )) + // Valid fid, invalid vid. + ->values(array( + 'fid' => 2, + 'nid' => '40', + 'vid' => 24 + $i + 1, + 'description' => 'crazy-basename.png', + 'list' => '1', + 'weight' => '0', + )) + ->execute(); +} -- cgit v1.2.3