From 029c48c68d7f4f2bc94e93e3333908ca158433c5 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 10 Sep 2009 06:38:20 +0000 Subject: - Patch #306151 by agentrickard, David_Rothstein, Dave Reid, dbabbage, moshe weitzman: automatically install/uninstall schema. --- modules/simpletest/simpletest.install | 4 ---- modules/simpletest/tests/database_test.install | 14 -------------- modules/simpletest/tests/field_test.install | 14 -------------- modules/simpletest/tests/taxonomy_test.install | 15 --------------- 4 files changed, 47 deletions(-) (limited to 'modules/simpletest') diff --git a/modules/simpletest/simpletest.install b/modules/simpletest/simpletest.install index 1ca0bae18..d12d5befd 100644 --- a/modules/simpletest/simpletest.install +++ b/modules/simpletest/simpletest.install @@ -10,7 +10,6 @@ * Implement hook_install(). */ function simpletest_install() { - drupal_install_schema('simpletest'); // Check for files directory. $path = 'public://simpletest'; if (file_prepare_directory($path, FILE_CREATE_DIRECTORY)) { @@ -110,9 +109,6 @@ function simpletest_uninstall() { variable_del('simpletest_clear_results'); variable_del('simpletest_verbose'); - // Uninstall schema. - drupal_uninstall_schema('simpletest'); - // Remove generated files. $path = file_directory_path() . '/simpletest'; $files = file_scan_directory($path, '/.*/'); diff --git a/modules/simpletest/tests/database_test.install b/modules/simpletest/tests/database_test.install index 6b9607775..b9fe61ab4 100644 --- a/modules/simpletest/tests/database_test.install +++ b/modules/simpletest/tests/database_test.install @@ -204,17 +204,3 @@ function database_test_schema() { return $schema; } - -/** - * Implement hook_install(). - */ -function database_test_install() { - drupal_install_schema('database_test'); -} - -/** - * Implement hook_uninstall(). - */ -function database_test_uninstall() { - drupal_uninstall_schema('database_test'); -} diff --git a/modules/simpletest/tests/field_test.install b/modules/simpletest/tests/field_test.install index 1fa0eeb11..83beb5e42 100644 --- a/modules/simpletest/tests/field_test.install +++ b/modules/simpletest/tests/field_test.install @@ -64,17 +64,3 @@ function field_test_schema() { return $schema; } - -/** - * Implement hook_install(). - */ -function field_test_install() { - drupal_install_schema('field_test'); -} - -/** - * Implement hook_uninstall(). - */ -function field_test_uninstall() { - drupal_uninstall_schema('field_test'); -} diff --git a/modules/simpletest/tests/taxonomy_test.install b/modules/simpletest/tests/taxonomy_test.install index 2d771d0e2..c4a568da4 100644 --- a/modules/simpletest/tests/taxonomy_test.install +++ b/modules/simpletest/tests/taxonomy_test.install @@ -33,18 +33,3 @@ function taxonomy_test_schema() { return $schema; } - -/** - * Implement hook_install(). - */ -function taxonomy_test_install() { - drupal_install_schema('taxonomy_test'); -} - -/** - * Implement hook_uninstall(). - */ -function taxonomy_test_uninstall() { - drupal_uninstall_schema('taxonomy_test'); -} - -- cgit v1.2.3