drupal-7.system.database.php 3.07 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
<?php

/**
 * @file
 * Database additions for system tests. Used in upgrade.system.test.
 *
 * This dump only contains data and schema components relevant for system
 * functionality. The drupal-7.filled.bare.php file is imported before
 * this dump, so the two form the database structure expected in tests
 * altogether.
 */

// Add non-default system settings.
db_insert('variable')->fields(array(
  'name',
  'value',
))
->values(array(
  'name' => 'cache',
  'value'=> 'i:1;',
))
->values(array(
    'name' => 'cache_lifetime',
    'value' => 's:5:"10800";',
  ))
->values(array(
    'name' => 'page_cache_maximum_age',
    'value' => 's:4:"1800";',
  ))
->values(array(
    'name' => 'page_compression',
    'value' => 'i:1;',
  ))
->values(array(
    'name' => 'preprocess_css',
    'value' => 'i:1;',
  ))
->values(array(
    'name' => 'preprocess_js',
    'value' => 'i:1;',
  ))
->values(array(
    'name' => 'cron_safe_threshold',
    'value' => 's:5:"86400";',
  ))
->values(array(
    'name' => 'cron_threshold_warning',
    'value' => 's:5:"86400";',
  ))
->values(array(
    'name' => 'cron_threshold_error',
    'value' => 's:6:"172800";',
  ))
->values(array(
    'name' => 'error_level',
    'value' => 's:1:"1";',
  ))
->values(array(
    'name' => 'maintenance_mode',
    'value' => 'i:1;',
  ))
->values(array(
    'name' => 'maintenance_mode_message',
    'value' => 's:22:"Testing config upgrade"',
  ))
->values(array(
    'name' => 'feed_default_items',
    'value' => 's:2:"20";',
  ))
->values(array(
    'name' => 'feed_description',
    'value' => 's:22:"Testing config upgrade";',
  ))
->values(array(
    'name' => 'feed_item_length',
    'value' => 's:6:"teaser";',
  ))
->values(array(
    'name' => 'site_403',
    'value' => 's:3:"403";',
  ))
->values(array(
    'name' => 'site_404',
    'value' => 's:3:"404";',
  ))
->values(array(
    'name' => 'site_frontpage',
    'value' => 's:4:"node";',
  ))
->values(array(
    'name' => 'site_slogan',
    'value' => 's:31:"CMI makes Drupal 8 drush cex -y";',
  ))
94 95 96
->values(array(
  'name' => 'user_cancel_method',
  'value' => 's:20:"user_cancel_reassign"',
97
  ))
98 99 100 101 102 103 104 105 106 107 108 109
->values(array(
    'name' => 'taxonomy_override_selector',
    'value' => 'i:1;',
  ))
->values(array(
    'name' => 'taxonomy_terms_per_page_admin',
    'value' => 'i:32;',
  ))
->values(array(
    'name' => 'taxonomy_maintain_index_table',
    'value' => 'i:0;',
 ))
110 111 112
->values(array(
  'name' => 'filter_allowed_protocols',
  'value' => 'a:4:{i:0;s:4:"http";i:1;s:5:"https";i:2;s:3:"ftp";i:3;s:6:"mailto";}',
113 114 115 116
  ))
->values(array(
    'name' => 'password_count_log2',
    'value' => 'i:42;',
117
))
118 119 120 121
->values(array(
    'name' => 'actions_max_stack',
    'value' => 'i:42;',
  ))
122 123 124 125 126 127 128 129 130 131
->execute();

db_update('variable')
  ->fields(array('value' => 's:18:"config@example.com";'))
  ->condition('name', 'site_mail')
  ->execute();
db_update('variable')
    ->fields(array('value' => 's:22:"Testing config upgrade";'))
    ->condition('name', 'site_name')
    ->execute();
132 133 134 135
db_update('variable')
  ->fields(array('value' => 's:10:"plain_text";'))
  ->condition('name', 'filter_fallback_format')
  ->execute();