'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' => '',
+))
->execute();
$connection->schema()->createTable('config', array(
'mysql_character_set' => 'utf8',
));
+$connection->insert('forum')
+->fields(array(
+ 'nid',
+ 'vid',
+ 'tid',
+))
+->values(array(
+ 'nid' => '19',
+ 'vid' => '22',
+ 'tid' => '8',
+))
+->execute();
+
$connection->schema()->createTable('history', array(
'fields' => array(
'uid' => array(
'nid' => '18',
'timestamp' => '1493066711',
))
+->values(array(
+ 'uid' => '1',
+ 'nid' => '19',
+ 'timestamp' => '1501955803',
+))
->execute();
$connection->schema()->createTable('i18n_blocks', array(
'objectindex' => '0',
'format' => '0',
))
+->values(array(
+ 'lid' => '1672',
+ 'objectid' => '6',
+ 'type' => 'vocabulary',
+ 'property' => 'name',
+ 'objectindex' => '6',
+ 'format' => '0',
+))
+->values(array(
+ 'lid' => '1673',
+ 'objectid' => '7',
+ 'type' => 'vocabulary',
+ 'property' => 'name',
+ 'objectindex' => '7',
+ 'format' => '0',
+))
->execute();
$connection->schema()->createTable('i18n_variable', array(
'source' => '%name: Title mismatch. Please check your selection.',
'version' => 'none',
))
+->values(array(
+ 'lid' => '1672',
+ 'location' => 'vocabulary:6:name',
+ 'textgroup' => 'taxonomy',
+ 'source' => 'Type',
+ 'version' => '1',
+))
+->values(array(
+ 'lid' => '1673',
+ 'location' => 'vocabulary:7:name',
+ 'textgroup' => 'taxonomy',
+ 'source' => 'Forums',
+ 'version' => '1',
+))
->execute();
$connection->schema()->createTable('locales_target', array(
'tnid' => '0',
'translate' => '0',
))
+->values(array(
+ 'nid' => '19',
+ 'vid' => '22',
+ 'type' => 'forum',
+ 'language' => '',
+ 'title' => 'New Forum Topic',
+ 'uid' => '1',
+ 'status' => '1',
+ 'created' => '1501955771',
+ 'changed' => '1501955771',
+ 'comment' => '2',
+ 'promote' => '0',
+ 'moderate' => '0',
+ 'sticky' => '0',
+ 'tnid' => '0',
+ 'translate' => '0',
+))
->execute();
$connection->schema()->createTable('node_access', array(
'last_comment_uid' => '1',
'comment_count' => '0',
))
+->values(array(
+ 'nid' => '19',
+ 'last_comment_timestamp' => '1501955803',
+ 'last_comment_name' => '',
+ 'last_comment_uid' => '1',
+ 'comment_count' => '3',
+))
->execute();
$connection->schema()->createTable('node_counter', array(
'daycount' => '1',
'timestamp' => '1493066711',
))
+->values(array(
+ 'nid' => '19',
+ 'totalcount' => '4',
+ 'daycount' => '4',
+ 'timestamp' => '1501955803',
+))
->execute();
$connection->schema()->createTable('node_revisions', array(
'timestamp' => '1494966544',
'format' => '1',
))
+->values(array(
+ 'nid' => '19',
+ 'vid' => '22',
+ 'uid' => '1',
+ 'title' => 'New Forum Topic',
+ 'body' => 'New Forum Body',
+ 'teaser' => 'New Forum Body',
+ 'log' => '',
+ 'timestamp' => '1501955771',
+ 'format' => '1',
+))
->execute();
$connection->schema()->createTable('node_type', array(
'language' => 'fr',
'trid' => '0',
))
+->values(array(
+ 'tid' => '8',
+ 'vid' => '7',
+ 'name' => 'General discussion',
+ 'description' => '',
+ 'weight' => '0',
+ 'language' => '',
+ 'trid' => '0',
+))
->execute();
$connection->schema()->createTable('term_hierarchy', array(
'tid' => '7',
'parent' => '0',
))
+->values(array(
+ 'tid' => '8',
+ 'parent' => '0',
+))
->values(array(
'tid' => '3',
'parent' => '2',
'vid' => '2',
'tid' => '5',
))
+->values(array(
+ 'nid' => '19',
+ 'vid' => '22',
+ 'tid' => '8',
+))
->execute();
$connection->schema()->createTable('term_relation', array(
))
->values(array(
'name' => 'forum_nav_vocabulary',
- 'value' => 's:1:"1";',
+ 'value' => 's:1:"7";',
))
->values(array(
'name' => 'forum_order',
'weight' => '7',
'language' => '',
))
+->values(array(
+ 'vid' => '6',
+ 'name' => 'Type',
+ 'description' => '',
+ 'help' => '',
+ 'relations' => '1',
+ 'hierarchy' => '0',
+ 'multiple' => '0',
+ 'required' => '0',
+ 'tags' => '0',
+ 'module' => 'taxonomy',
+ 'weight' => '0',
+ 'language' => '',
+))
+->values(array(
+ 'vid' => '7',
+ 'name' => 'Forums',
+ 'description' => '',
+ 'help' => '',
+ 'relations' => '1',
+ 'hierarchy' => '0',
+ 'multiple' => '0',
+ 'required' => '0',
+ 'tags' => '0',
+ 'module' => 'taxonomy',
+ 'weight' => '0',
+ 'language' => '',
+))
->execute();
$connection->schema()->createTable('vocabulary_node_types', array(
'type' => 'article',
))
->values(array(
- 'vid' => '1',
+ 'vid' => '7',
'type' => 'forum',
))
->values(array(
'vid' => '4',
'type' => 'page',
))
+->values(array(
+ 'vid' => '6',
+ 'type' => 'sponsor',
+))
->values(array(
'vid' => '1',
'type' => 'story',