/core/modules/migrate_drupal/tests/fixtures/drupal6.php
PHP | 18629 lines | 708 code | 13 blank | 17908 comment | 1 complexity | c746f9d212dfa01ad1c8aeca322e9305 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1
Large files files are truncated, but you can click here to view the full file
- <?php
- // @codingStandardsIgnoreFile
- /**
- * @file
- * A database agnostic dump for testing purposes.
- *
- * This file was generated by the Drupal 8.0 db-tools.php script.
- */
- use Drupal\Core\Database\Database;
- $connection = Database::getConnection();
- $connection->schema()->createTable('access', array(
- 'fields' => array(
- 'aid' => array(
- 'type' => 'serial',
- 'not null' => TRUE,
- 'size' => 'normal',
- ),
- 'mask' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- 'default' => '',
- ),
- 'type' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- 'default' => '',
- ),
- 'status' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- ),
- 'primary key' => array(
- 'aid',
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->schema()->createTable('accesslog', array(
- 'fields' => array(
- 'aid' => array(
- 'type' => 'serial',
- 'not null' => TRUE,
- 'size' => 'normal',
- ),
- 'sid' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '64',
- 'default' => '',
- ),
- 'title' => array(
- 'type' => 'varchar',
- 'not null' => FALSE,
- 'length' => '255',
- ),
- 'path' => array(
- 'type' => 'varchar',
- 'not null' => FALSE,
- 'length' => '255',
- ),
- 'url' => array(
- 'type' => 'text',
- 'not null' => FALSE,
- 'size' => 'normal',
- ),
- 'hostname' => array(
- 'type' => 'varchar',
- 'not null' => FALSE,
- 'length' => '128',
- ),
- 'uid' => array(
- 'type' => 'int',
- 'not null' => FALSE,
- 'size' => 'normal',
- 'default' => '0',
- 'unsigned' => TRUE,
- ),
- 'timer' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- 'unsigned' => TRUE,
- ),
- 'timestamp' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- 'unsigned' => TRUE,
- ),
- ),
- 'primary key' => array(
- 'aid',
- ),
- 'indexes' => array(
- 'accesslog_timestamp' => array(
- 'timestamp',
- ),
- 'uid' => array(
- 'uid',
- ),
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->schema()->createTable('actions', array(
- 'fields' => array(
- 'aid' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- 'default' => '0',
- ),
- 'type' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '32',
- 'default' => '',
- ),
- 'callback' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- 'default' => '',
- ),
- 'parameters' => array(
- 'type' => 'text',
- 'not null' => TRUE,
- 'size' => 'normal',
- ),
- 'description' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- 'default' => '0',
- ),
- ),
- 'primary key' => array(
- 'aid',
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->insert('actions')
- ->fields(array(
- 'aid',
- 'type',
- 'callback',
- 'parameters',
- 'description',
- ))
- ->values(array(
- 'aid' => '1',
- 'type' => 'comment',
- 'callback' => 'comment_unpublish_by_keyword_action',
- 'parameters' => 'a:1:{s:8:"keywords";a:1:{i:0;s:6:"drupal";}}',
- 'description' => 'Unpublish comment containing keyword(s)',
- ))
- ->values(array(
- 'aid' => '2',
- 'type' => 'node',
- 'callback' => 'node_assign_owner_action',
- 'parameters' => 'a:1:{s:9:"owner_uid";s:1:"2";}',
- 'description' => 'Change the author of a post',
- ))
- ->values(array(
- 'aid' => '3',
- 'type' => 'node',
- 'callback' => 'node_unpublish_by_keyword_action',
- 'parameters' => 'a:1:{s:8:"keywords";a:1:{i:0;s:6:"drupal";}}',
- 'description' => 'Unpublish post containing keyword(s)',
- ))
- ->values(array(
- 'aid' => '4',
- 'type' => 'system',
- 'callback' => 'system_message_action',
- 'parameters' => 'a:1:{s:7:"message";s:21:"Drupal migration test";}',
- 'description' => 'Display a message to the user',
- ))
- ->values(array(
- 'aid' => '5',
- 'type' => 'system',
- 'callback' => 'system_send_email_action',
- 'parameters' => 'a:3:{s:9:"recipient";s:16:"test@example.com";s:7:"subject";s:21:"Drupal migration test";s:7:"message";s:21:"Drupal migration test";}',
- 'description' => 'Send e-mail',
- ))
- ->values(array(
- 'aid' => '6',
- 'type' => 'system',
- 'callback' => 'system_goto_action',
- 'parameters' => 'a:1:{s:3:"url";s:22:"https://www.drupal.org";}',
- 'description' => 'Redirect to URL',
- ))
- ->values(array(
- 'aid' => 'comment_publish_action',
- 'type' => 'comment',
- 'callback' => 'comment_publish_action',
- 'parameters' => '',
- 'description' => 'Publish comment',
- ))
- ->values(array(
- 'aid' => 'comment_unpublish_action',
- 'type' => 'comment',
- 'callback' => 'comment_unpublish_action',
- 'parameters' => '',
- 'description' => 'Unpublish comment',
- ))
- ->values(array(
- 'aid' => 'imagecache_flush_action',
- 'type' => 'node',
- 'callback' => 'imagecache_flush_action',
- 'parameters' => '',
- 'description' => "ImageCache: Flush ALL presets for this node's filefield images",
- ))
- ->values(array(
- 'aid' => 'imagecache_generate_all_action',
- 'type' => 'node',
- 'callback' => 'imagecache_generate_all_action',
- 'parameters' => '',
- 'description' => "ImageCache: Generate ALL presets for this node's filefield images",
- ))
- ->values(array(
- 'aid' => 'node_make_sticky_action',
- 'type' => 'node',
- 'callback' => 'node_make_sticky_action',
- 'parameters' => '',
- 'description' => 'Make post sticky',
- ))
- ->values(array(
- 'aid' => 'node_make_unsticky_action',
- 'type' => 'node',
- 'callback' => 'node_make_unsticky_action',
- 'parameters' => '',
- 'description' => 'Make post unsticky',
- ))
- ->values(array(
- 'aid' => 'node_promote_action',
- 'type' => 'node',
- 'callback' => 'node_promote_action',
- 'parameters' => '',
- 'description' => 'Promote post to front page',
- ))
- ->values(array(
- 'aid' => 'node_publish_action',
- 'type' => 'node',
- 'callback' => 'node_publish_action',
- 'parameters' => '',
- 'description' => 'Publish post',
- ))
- ->values(array(
- 'aid' => 'node_save_action',
- 'type' => 'node',
- 'callback' => 'node_save_action',
- 'parameters' => '',
- 'description' => 'Save post',
- ))
- ->values(array(
- 'aid' => 'node_unpromote_action',
- 'type' => 'node',
- 'callback' => 'node_unpromote_action',
- 'parameters' => '',
- 'description' => 'Remove post from front page',
- ))
- ->values(array(
- 'aid' => 'node_unpublish_action',
- 'type' => 'node',
- 'callback' => 'node_unpublish_action',
- 'parameters' => '',
- 'description' => 'Unpublish post',
- ))
- ->values(array(
- 'aid' => 'user_block_ip_action',
- 'type' => 'user',
- 'callback' => 'user_block_ip_action',
- 'parameters' => '',
- 'description' => 'Ban IP address of current user',
- ))
- ->values(array(
- 'aid' => 'user_block_user_action',
- 'type' => 'user',
- 'callback' => 'user_block_user_action',
- 'parameters' => '',
- 'description' => 'Block current user',
- ))
- ->execute();
- $connection->schema()->createTable('actions_aid', array(
- 'fields' => array(
- 'aid' => array(
- 'type' => 'serial',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'unsigned' => TRUE,
- ),
- ),
- 'primary key' => array(
- 'aid',
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->insert('actions_aid')
- ->fields(array(
- 'aid',
- ))
- ->values(array(
- 'aid' => '1',
- ))
- ->values(array(
- 'aid' => '2',
- ))
- ->values(array(
- 'aid' => '3',
- ))
- ->values(array(
- 'aid' => '4',
- ))
- ->values(array(
- 'aid' => '5',
- ))
- ->values(array(
- 'aid' => '6',
- ))
- ->execute();
- $connection->schema()->createTable('aggregator_category', array(
- 'fields' => array(
- 'cid' => array(
- 'type' => 'serial',
- 'not null' => TRUE,
- 'size' => 'normal',
- ),
- 'title' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- 'default' => '',
- ),
- 'description' => array(
- 'type' => 'text',
- 'not null' => TRUE,
- 'size' => 'normal',
- ),
- 'block' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- ),
- 'primary key' => array(
- 'cid',
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->schema()->createTable('aggregator_feed', array(
- 'fields' => array(
- 'fid' => array(
- 'type' => 'serial',
- 'not null' => TRUE,
- 'size' => 'normal',
- ),
- 'title' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- 'default' => '',
- ),
- 'url' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- 'default' => '',
- ),
- 'refresh' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'checked' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'link' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- 'default' => '',
- ),
- 'description' => array(
- 'type' => 'text',
- 'not null' => TRUE,
- 'size' => 'normal',
- ),
- 'image' => array(
- 'type' => 'text',
- 'not null' => TRUE,
- 'size' => 'normal',
- ),
- 'etag' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- 'default' => '',
- ),
- 'modified' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'block' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- ),
- 'primary key' => array(
- 'fid',
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->insert('aggregator_feed')
- ->fields(array(
- 'fid',
- 'title',
- 'url',
- 'refresh',
- 'checked',
- 'link',
- 'description',
- 'image',
- 'etag',
- 'modified',
- 'block',
- ))
- ->values(array(
- 'fid' => '5',
- 'title' => 'Know Your Meme',
- 'url' => 'http://knowyourmeme.com/newsfeed.rss',
- 'refresh' => '900',
- 'checked' => '1387659487',
- 'link' => 'http://knowyourmeme.com',
- 'description' => 'New items added to the News Feed',
- 'image' => 'http://b.thumbs.redditmedia.com/harEHsUUZVajabtC.png',
- 'etag' => '"213cc1365b96c310e92053c5551f0504"',
- 'modified' => '0',
- 'block' => '7',
- ))
- ->execute();
- $connection->schema()->createTable('aggregator_item', array(
- 'fields' => array(
- 'iid' => array(
- 'type' => 'serial',
- 'not null' => TRUE,
- 'size' => 'normal',
- ),
- 'fid' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'title' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- 'default' => '',
- ),
- 'link' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- 'default' => '',
- ),
- 'author' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- 'default' => '',
- ),
- 'description' => array(
- 'type' => 'text',
- 'not null' => TRUE,
- 'size' => 'normal',
- ),
- 'timestamp' => array(
- 'type' => 'int',
- 'not null' => FALSE,
- 'size' => 'normal',
- ),
- 'guid' => array(
- 'type' => 'varchar',
- 'not null' => FALSE,
- 'length' => '255',
- ),
- ),
- 'primary key' => array(
- 'iid',
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->insert('aggregator_item')
- ->fields(array(
- 'iid',
- 'fid',
- 'title',
- 'link',
- 'author',
- 'description',
- 'timestamp',
- 'guid',
- ))
- ->values(array(
- 'iid' => '1',
- 'fid' => '5',
- 'title' => 'This (three) weeks in Drupal Core - January 10th 2014',
- 'link' => 'https://groups.drupal.org/node/395218',
- 'author' => 'larowlan',
- 'description' => "<h2 id='new'>What's new with Drupal 8?</h2>",
- 'timestamp' => '1389297196',
- 'guid' => '395218 at https://groups.drupal.org',
- ))
- ->execute();
- $connection->schema()->createTable('authmap', array(
- 'fields' => array(
- 'aid' => array(
- 'type' => 'serial',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'unsigned' => TRUE,
- ),
- 'uid' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'authname' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '128',
- 'default' => '',
- ),
- 'module' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '128',
- 'default' => '',
- ),
- ),
- 'primary key' => array(
- 'aid',
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->schema()->createTable('batch', array(
- 'fields' => array(
- 'bid' => array(
- 'type' => 'serial',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'unsigned' => TRUE,
- ),
- 'token' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '64',
- ),
- 'timestamp' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- ),
- 'batch' => array(
- 'type' => 'text',
- 'not null' => FALSE,
- 'size' => 'normal',
- ),
- ),
- 'primary key' => array(
- 'bid',
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->insert('batch')
- ->fields(array(
- 'bid',
- 'token',
- 'timestamp',
- 'batch',
- ))
- ->values(array(
- 'bid' => '1',
- 'token' => '',
- 'timestamp' => '1494966324',
- 'batch' => NULL,
- ))
- ->execute();
- $connection->schema()->createTable('blocks', array(
- 'fields' => array(
- 'bid' => array(
- 'type' => 'serial',
- 'not null' => TRUE,
- 'size' => 'normal',
- ),
- 'module' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '64',
- 'default' => '',
- ),
- 'delta' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '32',
- 'default' => '0',
- ),
- 'theme' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '64',
- 'default' => '',
- ),
- 'status' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'weight' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'region' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '64',
- 'default' => '',
- ),
- 'custom' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'throttle' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'visibility' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'pages' => array(
- 'type' => 'text',
- 'not null' => TRUE,
- 'size' => 'normal',
- ),
- 'title' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '64',
- 'default' => '',
- ),
- 'cache' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '1',
- ),
- ),
- 'primary key' => array(
- 'bid',
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->insert('blocks')
- ->fields(array(
- 'bid',
- 'module',
- 'delta',
- 'theme',
- 'status',
- 'weight',
- 'region',
- 'custom',
- 'throttle',
- 'visibility',
- 'pages',
- 'title',
- 'cache',
- ))
- ->values(array(
- 'bid' => '1',
- 'module' => 'user',
- 'delta' => '0',
- 'theme' => 'garland',
- 'status' => '1',
- 'weight' => '-10',
- 'region' => 'left',
- 'custom' => '0',
- 'throttle' => '0',
- 'visibility' => '0',
- 'pages' => "<front>\r\nnode/1\nblog/*",
- 'title' => '',
- 'cache' => '-1',
- ))
- ->values(array(
- 'bid' => '2',
- 'module' => 'user',
- 'delta' => '1',
- 'theme' => 'garland',
- 'status' => '1',
- 'weight' => '-11',
- 'region' => 'left',
- 'custom' => '0',
- 'throttle' => '0',
- 'visibility' => '0',
- 'pages' => '',
- 'title' => 'zu - Navigation',
- 'cache' => '-1',
- ))
- ->values(array(
- 'bid' => '3',
- 'module' => 'system',
- 'delta' => '0',
- 'theme' => 'garland',
- 'status' => '1',
- 'weight' => '-5',
- 'region' => 'footer',
- 'custom' => '0',
- 'throttle' => '0',
- 'visibility' => '0',
- 'pages' => 'node/1',
- 'title' => '',
- 'cache' => '-1',
- ))
- ->values(array(
- 'bid' => '4',
- 'module' => 'comment',
- 'delta' => '0',
- 'theme' => 'garland',
- 'status' => '0',
- 'weight' => '-9',
- 'region' => '',
- 'custom' => '0',
- 'throttle' => '0',
- 'visibility' => '0',
- 'pages' => '',
- 'title' => '',
- 'cache' => '1',
- ))
- ->values(array(
- 'bid' => '5',
- 'module' => 'menu',
- 'delta' => 'primary-links',
- 'theme' => 'garland',
- 'status' => '1',
- 'weight' => '-5',
- 'region' => 'header',
- 'custom' => '0',
- 'throttle' => '0',
- 'visibility' => '0',
- 'pages' => '',
- 'title' => '',
- 'cache' => '-1',
- ))
- ->values(array(
- 'bid' => '6',
- 'module' => 'menu',
- 'delta' => 'secondary-links',
- 'theme' => 'garland',
- 'status' => '0',
- 'weight' => '-8',
- 'region' => '',
- 'custom' => '0',
- 'throttle' => '0',
- 'visibility' => '0',
- 'pages' => '',
- 'title' => '',
- 'cache' => '-1',
- ))
- ->values(array(
- 'bid' => '7',
- 'module' => 'node',
- 'delta' => '0',
- 'theme' => 'garland',
- 'status' => '0',
- 'weight' => '-7',
- 'region' => '',
- 'custom' => '0',
- 'throttle' => '0',
- 'visibility' => '0',
- 'pages' => '',
- 'title' => '',
- 'cache' => '-1',
- ))
- ->values(array(
- 'bid' => '8',
- 'module' => 'user',
- 'delta' => '2',
- 'theme' => 'garland',
- 'status' => '1',
- 'weight' => '-11',
- 'region' => 'right',
- 'custom' => '0',
- 'throttle' => '0',
- 'visibility' => '0',
- 'pages' => '',
- 'title' => '',
- 'cache' => '1',
- ))
- ->values(array(
- 'bid' => '9',
- 'module' => 'user',
- 'delta' => '3',
- 'theme' => 'garland',
- 'status' => '1',
- 'weight' => '-10',
- 'region' => 'right',
- 'custom' => '0',
- 'throttle' => '0',
- 'visibility' => '0',
- 'pages' => '',
- 'title' => '',
- 'cache' => '-1',
- ))
- ->values(array(
- 'bid' => '10',
- 'module' => 'block',
- 'delta' => '1',
- 'theme' => 'garland',
- 'status' => '1',
- 'weight' => '0',
- 'region' => 'content',
- 'custom' => '0',
- 'throttle' => '0',
- 'visibility' => '1',
- 'pages' => '<front>',
- 'title' => 'Static Block',
- 'cache' => '-1',
- ))
- ->values(array(
- 'bid' => '11',
- 'module' => 'block',
- 'delta' => '2',
- 'theme' => 'bluemarine',
- 'status' => '1',
- 'weight' => '-4',
- 'region' => 'right',
- 'custom' => '0',
- 'throttle' => '0',
- 'visibility' => '1',
- 'pages' => 'node',
- 'title' => 'Another Static Block',
- 'cache' => '-1',
- ))
- ->values(array(
- 'bid' => '12',
- 'module' => 'block',
- 'delta' => '1',
- 'theme' => 'test_theme',
- 'status' => '1',
- 'weight' => '-7',
- 'region' => 'right',
- 'custom' => '0',
- 'throttle' => '0',
- 'visibility' => '0',
- 'pages' => '',
- 'title' => '',
- 'cache' => '-1',
- ))
- ->values(array(
- 'bid' => '13',
- 'module' => 'block',
- 'delta' => '2',
- 'theme' => 'test_theme',
- 'status' => '1',
- 'weight' => '-2',
- 'region' => 'left',
- 'custom' => '0',
- 'throttle' => '0',
- 'visibility' => '2',
- 'pages' => "<?php\nreturn TRUE;",
- 'title' => '',
- 'cache' => '-1',
- ))
- ->values(array(
- 'bid' => '14',
- 'module' => 'aggregator',
- 'delta' => 'feed-5',
- 'theme' => 'garland',
- 'status' => '1',
- 'weight' => '-2',
- 'region' => 'right',
- 'custom' => '0',
- 'throttle' => '0',
- 'visibility' => '0',
- 'pages' => '',
- 'title' => '',
- 'cache' => '1',
- ))
- ->values(array(
- 'bid' => '15',
- 'module' => 'block',
- 'delta' => '2',
- 'theme' => 'garland',
- 'status' => '0',
- 'weight' => '1',
- 'region' => '',
- 'custom' => '0',
- 'throttle' => '0',
- 'visibility' => '0',
- 'pages' => '',
- 'title' => '',
- 'cache' => '-1',
- ))
- ->values(array(
- 'bid' => '16',
- 'module' => 'profile',
- 'delta' => '0',
- 'theme' => 'garland',
- 'status' => '0',
- 'weight' => '-5',
- 'region' => '',
- 'custom' => '0',
- 'throttle' => '0',
- 'visibility' => '0',
- 'pages' => '',
- 'title' => '',
- 'cache' => '5',
- ))
- ->values(array(
- 'bid' => '17',
- 'module' => 'event',
- 'delta' => '0',
- 'theme' => 'garland',
- 'status' => '0',
- 'weight' => '-3',
- 'region' => '',
- 'custom' => '0',
- 'throttle' => '0',
- 'visibility' => '0',
- 'pages' => '',
- 'title' => '',
- 'cache' => '1',
- ))
- ->values(array(
- 'bid' => '18',
- 'module' => 'event',
- 'delta' => '1',
- 'theme' => 'garland',
- 'status' => '0',
- 'weight' => '0',
- 'region' => '',
- 'custom' => '0',
- 'throttle' => '0',
- 'visibility' => '0',
- 'pages' => '',
- 'title' => '',
- 'cache' => '1',
- ))
- ->values(array(
- 'bid' => '19',
- 'module' => 'event',
- 'delta' => 'event-upcoming-event',
- 'theme' => 'garland',
- 'status' => '0',
- 'weight' => '-1',
- 'region' => '',
- 'custom' => '0',
- 'throttle' => '0',
- 'visibility' => '0',
- 'pages' => '',
- 'title' => '',
- 'cache' => '1',
- ))
- ->values(array(
- 'bid' => '20',
- 'module' => 'book',
- 'delta' => '0',
- 'theme' => 'garland',
- 'status' => '1',
- 'weight' => '-4',
- 'region' => 'right',
- 'custom' => '0',
- 'throttle' => '0',
- 'visibility' => '0',
- 'pages' => '',
- 'title' => '',
- 'cache' => '5',
- ))
- ->values(array(
- 'bid' => '21',
- 'module' => 'locale',
- 'delta' => '0',
- 'theme' => 'garland',
- 'status' => '0',
- 'weight' => '0',
- 'region' => '',
- 'custom' => '0',
- 'throttle' => '0',
- 'visibility' => '0',
- 'pages' => '',
- 'title' => '',
- 'cache' => '-1',
- ))
- ->values(array(
- 'bid' => '22',
- 'module' => 'forum',
- 'delta' => '0',
- 'theme' => 'garland',
- 'status' => '1',
- 'weight' => '-8',
- 'region' => 'left',
- 'custom' => '0',
- 'throttle' => '0',
- 'visibility' => '0',
- 'pages' => '',
- 'title' => '',
- 'cache' => '1',
- ))
- ->values(array(
- 'bid' => '23',
- 'module' => 'forum',
- 'delta' => '1',
- 'theme' => 'garland',
- 'status' => '1',
- 'weight' => '-9',
- 'region' => 'left',
- 'custom' => '0',
- 'throttle' => '0',
- 'visibility' => '0',
- 'pages' => '',
- 'title' => '',
- 'cache' => '1',
- ))
- ->values(array(
- 'bid' => '24',
- 'module' => 'statistics',
- 'delta' => '0',
- 'theme' => 'garland',
- 'status' => '1',
- 'weight' => '0',
- 'region' => 'right',
- 'custom' => '0',
- 'throttle' => '0',
- 'visibility' => '0',
- 'pages' => '',
- 'title' => '',
- 'cache' => '-1',
- ))
- ->execute();
- $connection->schema()->createTable('blocks_roles', array(
- 'fields' => array(
- 'module' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '64',
- ),
- 'delta' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '32',
- ),
- 'rid' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'unsigned' => TRUE,
- ),
- ),
- 'primary key' => array(
- 'module',
- 'delta',
- 'rid',
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->insert('blocks_roles')
- ->fields(array(
- 'module',
- 'delta',
- 'rid',
- ))
- ->values(array(
- 'module' => 'user',
- 'delta' => '2',
- 'rid' => '2',
- ))
- ->values(array(
- 'module' => 'user',
- 'delta' => '3',
- 'rid' => '3',
- ))
- ->execute();
- $connection->schema()->createTable('book', array(
- 'fields' => array(
- 'mlid' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- 'unsigned' => TRUE,
- ),
- 'nid' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- 'unsigned' => TRUE,
- ),
- 'bid' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- 'unsigned' => TRUE,
- ),
- ),
- 'primary key' => array(
- 'mlid',
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->insert('book')
- ->fields(array(
- 'mlid',
- 'nid',
- 'bid',
- ))
- ->values(array(
- 'mlid' => '1',
- 'nid' => '4',
- 'bid' => '4',
- ))
- ->values(array(
- 'mlid' => '2',
- 'nid' => '5',
- 'bid' => '4',
- ))
- ->values(array(
- 'mlid' => '3',
- 'nid' => '6',
- 'bid' => '4',
- ))
- ->values(array(
- 'mlid' => '4',
- 'nid' => '7',
- 'bid' => '4',
- ))
- ->values(array(
- 'mlid' => '5',
- 'nid' => '8',
- 'bid' => '8',
- ))
- ->execute();
- $connection->schema()->createTable('boxes', array(
- 'fields' => array(
- 'bid' => array(
- 'type' => 'serial',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'unsigned' => TRUE,
- ),
- 'body' => array(
- 'type' => 'text',
- 'not null' => FALSE,
- 'size' => 'normal',
- ),
- 'info' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '128',
- 'default' => '',
- ),
- 'format' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- ),
- 'primary key' => array(
- 'bid',
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->insert('boxes')
- ->fields(array(
- 'bid',
- 'body',
- 'info',
- 'format',
- ))
- ->values(array(
- 'bid' => '1',
- 'body' => '<h3>My first custom block body</h3>',
- 'info' => 'My block 1',
- 'format' => '2',
- ))
- ->values(array(
- 'bid' => '2',
- 'body' => '<h3>My second custom block body</h3>',
- 'info' => 'My block 2',
- 'format' => '2',
- ))
- ->execute();
- $connection->schema()->createTable('cache', array(
- 'fields' => array(
- 'cid' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- 'default' => '',
- ),
- 'data' => array(
- 'type' => 'blob',
- 'not null' => FALSE,
- 'size' => 'big',
- ),
- 'expire' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'created' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'headers' => array(
- 'type' => 'text',
- 'not null' => FALSE,
- 'size' => 'normal',
- ),
- 'serialized' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- ),
- 'primary key' => array(
- 'cid',
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->schema()->createTable('cache_block', array(
- 'fields' => array(
- 'cid' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- 'default' => '',
- ),
- 'data' => array(
- 'type' => 'blob',
- 'not null' => FALSE,
- 'size' => 'big',
- ),
- 'expire' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'created' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'headers' => array(
- 'type' => 'text',
- 'not null' => FALSE,
- 'size' => 'normal',
- ),
- 'serialized' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- ),
- 'primary key' => array(
- 'cid',
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->schema()->createTable('cache_bootstrap', array(
- 'fields' => array(
- 'cid' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- 'default' => '',
- ),
- 'data' => array(
- 'type' => 'blob',
- 'not null' => FALSE,
- 'size' => 'big',
- ),
- 'expire' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'created' => array(
- 'type' => 'numeric',
- 'not null' => TRUE,
- 'precision' => '14',
- 'scale' => '3',
- 'default' => '0.000',
- ),
- 'serialized' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'tags' => array(
- 'type' => 'text',
- 'not null' => FALSE,
- 'size' => 'normal',
- ),
- 'checksum_invalidations' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'checksum_deletions' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- ),
- 'primary key' => array(
- 'cid',
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->schema()->createTable('cache_config', array(
- 'fields' => array(
- 'cid' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- 'default' => '',
- ),
- 'data' => array(
- 'type' => 'blob',
- 'not null' => FALSE,
- 'size' => 'big',
- ),
- 'expire' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'created' => array(
- 'type' => 'numeric',
- 'not null' => TRUE,
- 'precision' => '14',
- 'scale' => '3',
- 'default' => '0.000',
- ),
- 'serialized' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'tags' => array(
- 'type' => 'text',
- 'not null' => FALSE,
- 'size' => 'normal',
- ),
- 'checksum_invalidations' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'checksum_deletions' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- ),
- 'primary key' => array(
- 'cid',
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->schema()->createTable('cache_content', array(
- 'fields' => array(
- 'cid' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- 'default' => '',
- ),
- 'data' => array(
- 'type' => 'blob',
- 'not null' => FALSE,
- 'size' => 'big',
- ),
- 'expire' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'created' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'headers' => array(
- 'type' => 'text',
- 'not null' => FALSE,
- 'size' => 'normal',
- ),
- 'serialized' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- ),
- 'primary key' => array(
- 'cid',
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->schema()->createTable('cache_discovery', array(
- 'fields' => array(
- 'cid' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- 'default' => '',
- ),
- 'data' => array(
- 'type' => 'blob',
- 'not null' => FALSE,
- 'size' => 'big',
- ),
- 'expire' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'created' => array(
- 'type' => 'numeric',
- 'not null' => TRUE,
- 'precision' => '14',
- 'scale' => '3',
- 'default' => '0.000',
- ),
- 'serialized' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'tags' => array(
- 'type' => 'text',
- 'not null' => FALSE,
- 'size' => 'normal',
- ),
- 'checksum_invalidations' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'checksum_deletions' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- ),
- 'primary key' => array(
- 'cid',
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->schema()->createTable('cache_filter', array(
- 'fields' => array(
- 'cid' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- 'default' => '',
- ),
- 'data' => array(
- 'type' => 'blob',
- 'not null' => FALSE,
- 'size' => 'big',
- ),
- 'expire' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'created' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'headers' => array(
- 'type' => 'text',
- 'not null' => FALSE,
- 'size' => 'normal',
- ),
- 'serialized' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- ),
- 'primary key' => array(
- 'cid',
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->schema()->createTable('cache_form', array(
- 'fields' => array(
- 'cid' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- 'default' => '',
- ),
- 'data' => array(
- 'type' => 'blob',
- 'not null' => FALSE,
- 'size' => 'big',
- ),
- 'expire' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'created' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'headers' => array(
- 'type' => 'text',
- 'not null' => FALSE,
- 'size' => 'normal',
- ),
- 'serialized' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- ),
- 'primary key' => array(
- 'cid',
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->schema()->createTable('cache_menu', array(
- 'fields' => array(
- 'cid' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- 'default' => '',
- ),
- 'data' => array(
- 'type' => 'blob',
- 'not null' => FALSE,
- 'size' => 'big',
- ),
- 'expire' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'created' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'headers' => array(
- 'type' => 'text',
- 'not null' => FALSE,
- 'size' => 'normal',
- ),
- 'serialized' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- ),
- 'primary key' => array(
- 'cid',
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->schema()->createTable('cache_page', array(
- 'fields' => array(
- 'cid' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- 'default' => '',
- ),
- 'data' => array(
- 'type' => 'blob',
- 'not null' => FALSE,
- 'size' => 'big',
- ),
- 'expire' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'created' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'headers' => array(
- 'type' => 'text',
- 'not null' => FALSE,
- 'size' => 'normal',
- ),
- 'serialized' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- ),
- 'primary key' => array(
- 'cid',
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->schema()->createTable('cache_update', array(
- 'fields' => array(
- 'cid' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- 'default' => '',
- ),
- 'data' => array(
- 'type' => 'blob',
- 'not null' => FALSE,
- 'size' => 'big',
- ),
- 'expire' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'created' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'headers' => array(
- 'type' => 'text',
- 'not null' => FALSE,
- 'size' => 'normal',
- ),
- 'serialized' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- ),
- 'primary key' => array(
- 'cid',
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->schema()->createTable('cachetags', array(
- 'fields' => array(
- 'tag' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- 'default' => '',
- ),
- 'invalidations' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'deletions' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- ),
- 'primary key' => array(
- 'tag',
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->schema()->createTable('comments', array(
- 'fields' => array(
- 'cid' => array(
- 'type' => 'serial',
- 'not null' => TRUE,
- 'size' => 'normal',
- ),
- 'pid' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'nid' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'uid' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'subject' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '64',
- 'default' => '',
- ),
- 'comment' => array(
- 'type' => 'text',
- 'not null' => TRUE,
- 'size' => 'normal',
- ),
- 'hostname' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '128',
- 'default' => '',
- ),
- 'timestamp' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'status' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- 'unsigned' => TRUE,
- ),
- 'format' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'thread' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- ),
- 'name' => array(
- 'type' => 'varchar',
- 'not null' => FALSE,
- 'length' => '60',
- ),
- 'mail' => array(
- 'type' => 'varchar',
- 'not null' => FALSE,
- 'length' => '64',
- ),
- 'homepage' => array(
- 'type' => 'varchar',
- 'not null' => FALSE,
- 'length' => '255',
- ),
- ),
- 'primary key' => array(
- 'cid',
- ),
- 'indexes' => array(
- 'pid' => array(
- 'pid',
- ),
- 'comment_uid' => array(
- 'uid',
- ),
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->insert('comments')
- ->fields(array(
- 'cid',
- 'pid',
- 'nid',
- 'uid',
- 'subject',
- 'comment',
- 'hostname',
- 'timestamp',
- 'status',
- 'format',
- 'thread',
- 'name',
- 'mail',
- 'homepage',
- ))
- ->values(array(
- 'cid' => '1',
- 'pid' => '0',
- 'nid' => '1',
- 'uid' => '0',
- 'subject' => 'The first comment.',
- 'comment' => 'The first comment body.',
- 'hostname' => '203.0.113.1',
- 'timestamp' => '1390264918',
- 'status' => '0',
- 'format' => '1',
- 'thread' => '01/',
- 'name' => '1st comment author name',
- 'mail' => 'comment1@example.com',
- 'homepage' => 'https://www.drupal.org',
- ))
- ->values(array(
- 'cid' => '2',
- 'pid' => '3',
- 'nid' => '1',
- 'uid' => '0',
- 'subject' => 'The response to the second comment.',
- 'comment' => 'The second comment response body.',
- 'hostname' => '203.0.113.2',
- 'timestamp' => '1390264938',
- 'status' => '0',
- 'format' => '1',
- 'thread' => '02/01',
- 'name' => '3rd comment author name',
- 'mail' => 'comment3@example.com',
- 'homepage' => 'https://www.drupal.org',
- ))
- ->values(array(
- 'cid' => '3',
- 'pid' => '0',
- 'nid' => '1',
- 'uid' => '0',
- 'subject' => 'The second comment.',
- 'comment' => 'The second comment body.',
- 'hostname' => '203.0.113.3',
- 'timestamp' => '1390264948',
- 'status' => '1',
- 'format' => '1',
- 'thread' => '02/',
- 'name' => '3rd comment author name',
- 'mail' => 'comment3@example.com',
- 'homepage' => 'https://www.drupal.org',
- ))
- ->values(array(
- 'cid' => '4',
- 'pid' => '0',
- 'nid' => '19',
- 'uid' => '1',
- 'subject' => 'Subject 1',
- 'comment' => 'Comment 1',
- 'hostname' => '127.0.0.1',
- 'timestamp' => '1501955780',
- 'status' => '0',
- 'format' => '1',
- 'thread' => '01/',
- 'name' => 'root',
- 'mail' => '',
- 'homepage' => '',
- ))
- ->values(array(
- 'cid' => '5',
- 'pid' => '4',
- 'nid' => '19',
- 'uid' => '1',
- 'subject' => 'Subject 2',
- 'comment' => 'Comment 2',
- 'hostname' => '127.0.0.1',
- 'timestamp' => '1501955792',
- 'status' => '0',
- 'format' => '1',
- 'thread' => '01.00/',
- 'name' => 'root',
- 'mail' => '',
- 'homepage' => '',
- ))
- ->values(array(
- 'cid' => '6',
- 'pid' => '5',
- 'nid' => '19',
- 'uid' => '1',
- 'subject' => 'Subject 3',
- 'comment' => 'Comment 3',
- 'hostname' => '127.0.0.1',
- 'timestamp' => '1501955803',
- 'status' => '0',
- 'format' => '1',
- 'thread' => '01.00.00/',
- 'name' => 'root',
- 'mail' => '',
- 'homepage' => '',
- ))
- ->values(array(
- 'cid' => '7',
- 'pid' => '0',
- 'nid' => '21',
- 'uid' => '1',
- 'subject' => 'Comment to John Smith - EN',
- 'comment' => 'This is an English comment.',
- 'hostname' => '2001:14ba:13f8:300:d9d0:363c:9fe4:66e1',
- 'timestamp' => '1534014729',
- 'status' => '0',
- 'format' => '1',
- 'thread' => '01/',
- 'name' => 'root',
- 'mail' => '',
- 'homepage' => '',
- ))
- ->values(array(
- 'cid' => '8',
- 'pid' => '0',
- 'nid' => '22',
- 'uid' => '1',
- 'subject' => 'Comment to John Smith - FR',
- 'comment' => 'This is a French comment.',
- 'hostname' => '2001:14ba:13f8:300:d9d0:363c:9fe4:66e1',
- 'timestamp' => '1534014763',
- 'status' => '0',
- 'format' => '1',
- 'thread' => '01/',
- 'name' => 'root',
- 'mail' => '',
- 'homepage' => '',
- ))
- ->execute();
- $connection->schema()->createTable('config', array(
- 'fields' => array(
- 'collection' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- 'default' => '',
- ),
- 'name' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- 'default' => '',
- ),
- 'data' => array(
- 'type' => 'blob',
- 'not null' => FALSE,
- 'size' => 'normal',
- ),
- ),
- 'primary key' => array(
- 'collection',
- 'name',
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->insert('config')
- ->fields(array(
- 'collection',
- 'name',
- 'data',
- ))
- ->values(array(
- 'collection' => '',
- 'name' => 'system.file',
- 'data' => 'a:1:{s:4:"path";a:1:{s:9:"temporary";s:4:"/tmp";}}',
- ))
- ->execute();
- $connection->schema()->createTable('contact', array(
- 'fields' => array(
- 'cid' => array(
- 'type' => 'serial',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'unsigned' => TRUE,
- ),
- 'category' => array(
- 'type' => 'varchar',
- 'not null' => TRUE,
- 'length' => '255',
- 'default' => '',
- ),
- 'recipients' => array(
- 'type' => 'text',
- 'not null' => TRUE,
- 'size' => 'normal',
- ),
- 'reply' => array(
- 'type' => 'text',
- 'not null' => TRUE,
- 'size' => 'normal',
- ),
- 'weight' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- 'selected' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- ),
- ),
- 'primary key' => array(
- 'cid',
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->insert('contact')
- ->fields(array(
- 'cid',
- 'category',
- 'recipients',
- 'reply',
- 'weight',
- 'selected',
- ))
- ->values(array(
- 'cid' => '1',
- 'category' => 'Website feedback',
- 'recipients' => 'admin@example.com',
- 'reply' => '',
- 'weight' => '0',
- 'selected' => '0',
- ))
- ->values(array(
- 'cid' => '2',
- 'category' => 'Some other category',
- 'recipients' => 'test@example.com',
- 'reply' => 'Thanks for contacting us, we will reply ASAP!',
- 'weight' => '1',
- 'selected' => '1',
- ))
- ->values(array(
- 'cid' => '3',
- 'category' => 'A category much longer than thirty two characters',
- 'recipients' => 'fortyninechars@example.com',
- 'reply' => '',
- 'weight' => '2',
- 'selected' => '0',
- ))
- ->execute();
- $connection->schema()->createTable('content_field_company', array(
- 'fields' => array(
- 'vid' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- 'unsigned' => TRUE,
- ),
- 'nid' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- 'unsigned' => TRUE,
- ),
- 'delta' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- 'unsigned' => TRUE,
- ),
- 'field_company_nid' => array(
- 'type' => 'int',
- 'not null' => FALSE,
- 'size' => 'normal',
- 'unsigned' => TRUE,
- ),
- ),
- 'primary key' => array(
- 'vid',
- 'delta',
- ),
- 'indexes' => array(
- 'nid' => array(
- 'nid',
- ),
- 'field_company_nid' => array(
- 'field_company_nid',
- ),
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->insert('content_field_company')
- ->fields(array(
- 'vid',
- 'nid',
- 'delta',
- 'field_company_nid',
- ))
- ->values(array(
- 'vid' => '21',
- 'nid' => '18',
- 'delta' => '0',
- 'field_company_nid' => '15',
- ))
- ->values(array(
- 'vid' => '2002',
- 'nid' => '21',
- 'delta' => '0',
- 'field_company_nid' => NULL,
- ))
- ->values(array(
- 'vid' => '2003',
- 'nid' => '22',
- 'delta' => '0',
- 'field_company_nid' => NULL,
- ))
- ->values(array(
- 'vid' => '21',
- 'nid' => '18',
- 'delta' => '1',
- 'field_company_nid' => '16',
- ))
- ->execute();
- $connection->schema()->createTable('content_field_image', array(
- 'fields' => array(
- 'vid' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- 'unsigned' => TRUE,
- ),
- 'nid' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- 'unsigned' => TRUE,
- ),
- 'field_image_fid' => array(
- 'type' => 'int',
- 'not null' => FALSE,
- 'size' => 'normal',
- ),
- 'field_image_list' => array(
- 'type' => 'int',
- 'not null' => FALSE,
- 'size' => 'normal',
- ),
- 'field_image_data' => array(
- 'type' => 'text',
- 'not null' => FALSE,
- 'size' => 'normal',
- ),
- ),
- 'primary key' => array(
- 'vid',
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->insert('content_field_image')
- ->fields(array(
- 'vid',
- 'nid',
- 'field_image_fid',
- 'field_image_list',
- 'field_image_data',
- ))
- ->values(array(
- 'vid' => '1',
- 'nid' => '1',
- 'field_image_fid' => '2',
- 'field_image_list' => '1',
- 'field_image_data' => 'a:2:{s:3:"alt";s:0:"";s:5:"title";s:0:"";}',
- ))
- ->values(array(
- 'vid' => '2',
- 'nid' => '2',
- 'field_image_fid' => NULL,
- 'field_image_list' => NULL,
- 'field_image_data' => NULL,
- ))
- ->values(array(
- 'vid' => '3',
- 'nid' => '1',
- 'field_image_fid' => '2',
- 'field_image_list' => '1',
- 'field_image_data' => 'a:2:{s:3:"alt";s:0:"";s:5:"title";s:0:"";}',
- ))
- ->execute();
- $connection->schema()->createTable('content_field_multivalue', array(
- 'fields' => array(
- 'vid' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- 'unsigned' => TRUE,
- ),
- 'nid' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- 'unsigned' => TRUE,
- ),
- 'field_multivalue_value' => array(
- 'type' => 'numeric',
- 'not null' => FALSE,
- 'precision' => '10',
- 'scale' => '2',
- ),
- 'delta' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- 'unsigned' => TRUE,
- ),
- ),
- 'primary key' => array(
- 'vid',
- 'delta',
- ),
- 'indexes' => array(
- 'nid' => array(
- 'nid',
- ),
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->insert('content_field_multivalue')
- ->fields(array(
- 'vid',
- 'nid',
- 'field_multivalue_value',
- 'delta',
- ))
- ->values(array(
- 'vid' => '4',
- 'nid' => '3',
- 'field_multivalue_value' => '33.00',
- 'delta' => '0',
- ))
- ->values(array(
- 'vid' => '4',
- 'nid' => '3',
- 'field_multivalue_value' => '44.00',
- 'delta' => '1',
- ))
- ->execute();
- $connection->schema()->createTable('content_field_test', array(
- 'fields' => array(
- 'vid' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- 'unsigned' => TRUE,
- ),
- 'nid' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'size' => 'normal',
- 'default' => '0',
- 'unsigned' => TRUE,
- ),
- 'field_test_value' => array(
- 'type' => 'text',
- 'not null' => FALSE,
- 'size' => 'normal',
- ),
- 'field_test_format' => array(
- 'type' => 'int',
- 'not null' => FALSE,
- 'size' => 'normal',
- 'unsigned' => TRUE,
- ),
- ),
- 'primary key' => array(
- 'vid',
- ),
- 'indexes' => array(
- 'nid' => array(
- 'nid',
- ),
- ),
- 'mysql_character_set' => 'utf8',
- ));
- $connection->insert('content_field_test')
- ->fields(array(
- 'vid',
- 'nid',
- 'field_test_value',
- 'field_test_format',
- ))
- ->values(array(
- 'vid' => '1',
- 'nid' => '1',
- 'field_test_value' => 'This is a shared text field',
- 'field_test_format' => '1',
- ))
- ->values(array(
- 'vid' => '2',
- 'nid' => '1',
- 'field_test_value' => 'This is a shared text field',
- 'field_test_format' => '1',
- ))
- ->values(array(
- 'vid' => '3',
- 'nid' => '2',
- 'field_test_value' => NULL,
- 'field_test_format' => NULL,
- ))
- ->values(array(
- 'vid' => '5',
- 'nid' => '2',
- 'field_test_value' => NULL,
- 'field_test_format' => NULL,
- ))
- ->values(array(
- 'vid' => '12',
- 'nid' => '9',
- 'field_test_value' => 'text for default value',
- 'field_test_format' => '1',
- ))
- ->execute();
- $connection->schema()->createTable('content_field_test_text_single_checkbox', array(
- 'fields' => array(
- 'vid…
Large files files are truncated, but you can click here to view the full file