cvs diff: Diffing modules/simpletest
cvs diff: Diffing modules/simpletest/files
cvs diff: Diffing modules/simpletest/files/css_test_files
cvs diff: Diffing modules/simpletest/tests
cvs diff: Diffing modules/simpletest/tests/drupal_system_listing_compatible_test
cvs diff: Diffing modules/simpletest/tests/drupal_system_listing_incompatible_test
cvs diff: Diffing modules/simpletest/tests/upgrade
Index: modules/simpletest/tests/upgrade/drupal-6.filled.database.php
===================================================================
RCS file: /Users/wright/drupal/local_repo/drupal/modules/simpletest/tests/upgrade/drupal-6.filled.database.php,v
retrieving revision 1.4
diff -u -p -r1.4 drupal-6.filled.database.php
--- modules/simpletest/tests/upgrade/drupal-6.filled.database.php	4 Oct 2010 14:51:16 -0000	1.4
+++ modules/simpletest/tests/upgrade/drupal-6.filled.database.php	21 Nov 2010 14:19:22 -0000
@@ -19735,7 +19735,15 @@ db_insert('variable')->fields(array(
 ))
 ->values(array(
   'name' => 'file_directory_temp',
-  'value' => 's:26:"/Applications/MAMP/tmp/php";',
+  'value' => 's:29:"/drupal-6/file/directory/temp";',
+))
+->values(array(
+  'name' => 'file_directory_path',
+  'value' => 's:29:"/drupal-6/file/directory/path";',
+))
+->values(array(
+  'name' => 'file_downloads',
+  'value' => 'i:2;',
 ))
 ->values(array(
   'name' => 'filter_html_1',
Index: modules/simpletest/tests/upgrade/upgrade.upload.test
===================================================================
RCS file: /Users/wright/drupal/local_repo/drupal/modules/simpletest/tests/upgrade/upgrade.upload.test,v
retrieving revision 1.2
diff -u -p -r1.2 upgrade.upload.test
--- modules/simpletest/tests/upgrade/upgrade.upload.test	13 Nov 2010 01:48:14 -0000	1.2
+++ modules/simpletest/tests/upgrade/upgrade.upload.test	21 Nov 2010 14:19:22 -0000
@@ -65,5 +65,15 @@ class UploadUpgradePathTestCase extends 
       }
       $this->assertIdentical($filenames, $recorded_filenames, 'The uploaded files are present in the same order after the upgrade.');
     }
+    // Make sure the file settings were properly migrated.
+    $d6_file_directory_temp = '/drupal-6/file/directory/temp';
+    $d6_file_directory_path = '/drupal-6/file/directory/path';
+    $d6_file_downloads = 2; // FILE_DOWNLOADS_PRIVATE
+
+    debug(variable_get('file_directory_temp', NULL));
+    $this->assertNull(variable_get('file_directory_temp', NULL), "The 'file_directory_temp' variable was properly removed.");
+    $this->assertEqual(variable_get('file_temporary_path', 'drupal-7-bogus'), $d6_file_directory_temp, "The 'file_temporary_path' setting was properly migrated.");
+    $this->assertEqual(variable_get('file_default_scheme', 'drupal-7-bogus'), 'private', "The 'file_default_scheme' setting was properly migrated.");
+    $this->assertEqual(variable_get('file_private_path', 'drupal-7-bogus'), $d6_file_directory_path, "The 'file_private_path' setting was properly migrated.");
   }
 }
cvs diff: Diffing modules/system
Index: modules/system/system.install
===================================================================
RCS file: /Users/wright/drupal/local_repo/drupal/modules/system/system.install,v
retrieving revision 1.524
diff -u -p -r1.524 system.install
--- modules/system/system.install	13 Nov 2010 17:40:09 -0000	1.524
+++ modules/system/system.install	21 Nov 2010 14:20:52 -0000
@@ -2157,7 +2157,7 @@ function system_update_7033() {
 }
 
 /**
- * Migrate the file_downloads setting and create the new {file_managed} table.
+ * Migrate the file path settings and create the new {file_managed} table.
  */
 function system_update_7034() {
   $files_directory = variable_get('file_directory_path', NULL);
@@ -2918,6 +2918,15 @@ function system_update_7065() {
 }
 
 /**
+ * Migrate the 'file_directory_temp' variable.
+ */
+function system_update_7066() {
+  $d6_file_directory_temp = variable_get('file_directory_temp', file_directory_temp());
+  variable_set('file_temporary_path', $d6_file_directory_temp);
+  variable_del('file_directory_temp');
+}
+
+/**
  * @} End of "defgroup updates-6.x-to-7.x"
  * The next series of updates should start at 8000.
  */
