PageRenderTime 97ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 2ms

/core/modules/migrate_drupal/tests/fixtures/drupal6.php

http://github.com/drupal/drupal
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

  1. <?php
  2. // @codingStandardsIgnoreFile
  3. /**
  4. * @file
  5. * A database agnostic dump for testing purposes.
  6. *
  7. * This file was generated by the Drupal 8.0 db-tools.php script.
  8. */
  9. use Drupal\Core\Database\Database;
  10. $connection = Database::getConnection();
  11. $connection->schema()->createTable('access', array(
  12. 'fields' => array(
  13. 'aid' => array(
  14. 'type' => 'serial',
  15. 'not null' => TRUE,
  16. 'size' => 'normal',
  17. ),
  18. 'mask' => array(
  19. 'type' => 'varchar',
  20. 'not null' => TRUE,
  21. 'length' => '255',
  22. 'default' => '',
  23. ),
  24. 'type' => array(
  25. 'type' => 'varchar',
  26. 'not null' => TRUE,
  27. 'length' => '255',
  28. 'default' => '',
  29. ),
  30. 'status' => array(
  31. 'type' => 'int',
  32. 'not null' => TRUE,
  33. 'size' => 'normal',
  34. 'default' => '0',
  35. ),
  36. ),
  37. 'primary key' => array(
  38. 'aid',
  39. ),
  40. 'mysql_character_set' => 'utf8',
  41. ));
  42. $connection->schema()->createTable('accesslog', array(
  43. 'fields' => array(
  44. 'aid' => array(
  45. 'type' => 'serial',
  46. 'not null' => TRUE,
  47. 'size' => 'normal',
  48. ),
  49. 'sid' => array(
  50. 'type' => 'varchar',
  51. 'not null' => TRUE,
  52. 'length' => '64',
  53. 'default' => '',
  54. ),
  55. 'title' => array(
  56. 'type' => 'varchar',
  57. 'not null' => FALSE,
  58. 'length' => '255',
  59. ),
  60. 'path' => array(
  61. 'type' => 'varchar',
  62. 'not null' => FALSE,
  63. 'length' => '255',
  64. ),
  65. 'url' => array(
  66. 'type' => 'text',
  67. 'not null' => FALSE,
  68. 'size' => 'normal',
  69. ),
  70. 'hostname' => array(
  71. 'type' => 'varchar',
  72. 'not null' => FALSE,
  73. 'length' => '128',
  74. ),
  75. 'uid' => array(
  76. 'type' => 'int',
  77. 'not null' => FALSE,
  78. 'size' => 'normal',
  79. 'default' => '0',
  80. 'unsigned' => TRUE,
  81. ),
  82. 'timer' => array(
  83. 'type' => 'int',
  84. 'not null' => TRUE,
  85. 'size' => 'normal',
  86. 'default' => '0',
  87. 'unsigned' => TRUE,
  88. ),
  89. 'timestamp' => array(
  90. 'type' => 'int',
  91. 'not null' => TRUE,
  92. 'size' => 'normal',
  93. 'default' => '0',
  94. 'unsigned' => TRUE,
  95. ),
  96. ),
  97. 'primary key' => array(
  98. 'aid',
  99. ),
  100. 'indexes' => array(
  101. 'accesslog_timestamp' => array(
  102. 'timestamp',
  103. ),
  104. 'uid' => array(
  105. 'uid',
  106. ),
  107. ),
  108. 'mysql_character_set' => 'utf8',
  109. ));
  110. $connection->schema()->createTable('actions', array(
  111. 'fields' => array(
  112. 'aid' => array(
  113. 'type' => 'varchar',
  114. 'not null' => TRUE,
  115. 'length' => '255',
  116. 'default' => '0',
  117. ),
  118. 'type' => array(
  119. 'type' => 'varchar',
  120. 'not null' => TRUE,
  121. 'length' => '32',
  122. 'default' => '',
  123. ),
  124. 'callback' => array(
  125. 'type' => 'varchar',
  126. 'not null' => TRUE,
  127. 'length' => '255',
  128. 'default' => '',
  129. ),
  130. 'parameters' => array(
  131. 'type' => 'text',
  132. 'not null' => TRUE,
  133. 'size' => 'normal',
  134. ),
  135. 'description' => array(
  136. 'type' => 'varchar',
  137. 'not null' => TRUE,
  138. 'length' => '255',
  139. 'default' => '0',
  140. ),
  141. ),
  142. 'primary key' => array(
  143. 'aid',
  144. ),
  145. 'mysql_character_set' => 'utf8',
  146. ));
  147. $connection->insert('actions')
  148. ->fields(array(
  149. 'aid',
  150. 'type',
  151. 'callback',
  152. 'parameters',
  153. 'description',
  154. ))
  155. ->values(array(
  156. 'aid' => '1',
  157. 'type' => 'comment',
  158. 'callback' => 'comment_unpublish_by_keyword_action',
  159. 'parameters' => 'a:1:{s:8:"keywords";a:1:{i:0;s:6:"drupal";}}',
  160. 'description' => 'Unpublish comment containing keyword(s)',
  161. ))
  162. ->values(array(
  163. 'aid' => '2',
  164. 'type' => 'node',
  165. 'callback' => 'node_assign_owner_action',
  166. 'parameters' => 'a:1:{s:9:"owner_uid";s:1:"2";}',
  167. 'description' => 'Change the author of a post',
  168. ))
  169. ->values(array(
  170. 'aid' => '3',
  171. 'type' => 'node',
  172. 'callback' => 'node_unpublish_by_keyword_action',
  173. 'parameters' => 'a:1:{s:8:"keywords";a:1:{i:0;s:6:"drupal";}}',
  174. 'description' => 'Unpublish post containing keyword(s)',
  175. ))
  176. ->values(array(
  177. 'aid' => '4',
  178. 'type' => 'system',
  179. 'callback' => 'system_message_action',
  180. 'parameters' => 'a:1:{s:7:"message";s:21:"Drupal migration test";}',
  181. 'description' => 'Display a message to the user',
  182. ))
  183. ->values(array(
  184. 'aid' => '5',
  185. 'type' => 'system',
  186. 'callback' => 'system_send_email_action',
  187. '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";}',
  188. 'description' => 'Send e-mail',
  189. ))
  190. ->values(array(
  191. 'aid' => '6',
  192. 'type' => 'system',
  193. 'callback' => 'system_goto_action',
  194. 'parameters' => 'a:1:{s:3:"url";s:22:"https://www.drupal.org";}',
  195. 'description' => 'Redirect to URL',
  196. ))
  197. ->values(array(
  198. 'aid' => 'comment_publish_action',
  199. 'type' => 'comment',
  200. 'callback' => 'comment_publish_action',
  201. 'parameters' => '',
  202. 'description' => 'Publish comment',
  203. ))
  204. ->values(array(
  205. 'aid' => 'comment_unpublish_action',
  206. 'type' => 'comment',
  207. 'callback' => 'comment_unpublish_action',
  208. 'parameters' => '',
  209. 'description' => 'Unpublish comment',
  210. ))
  211. ->values(array(
  212. 'aid' => 'imagecache_flush_action',
  213. 'type' => 'node',
  214. 'callback' => 'imagecache_flush_action',
  215. 'parameters' => '',
  216. 'description' => "ImageCache: Flush ALL presets for this node's filefield images",
  217. ))
  218. ->values(array(
  219. 'aid' => 'imagecache_generate_all_action',
  220. 'type' => 'node',
  221. 'callback' => 'imagecache_generate_all_action',
  222. 'parameters' => '',
  223. 'description' => "ImageCache: Generate ALL presets for this node's filefield images",
  224. ))
  225. ->values(array(
  226. 'aid' => 'node_make_sticky_action',
  227. 'type' => 'node',
  228. 'callback' => 'node_make_sticky_action',
  229. 'parameters' => '',
  230. 'description' => 'Make post sticky',
  231. ))
  232. ->values(array(
  233. 'aid' => 'node_make_unsticky_action',
  234. 'type' => 'node',
  235. 'callback' => 'node_make_unsticky_action',
  236. 'parameters' => '',
  237. 'description' => 'Make post unsticky',
  238. ))
  239. ->values(array(
  240. 'aid' => 'node_promote_action',
  241. 'type' => 'node',
  242. 'callback' => 'node_promote_action',
  243. 'parameters' => '',
  244. 'description' => 'Promote post to front page',
  245. ))
  246. ->values(array(
  247. 'aid' => 'node_publish_action',
  248. 'type' => 'node',
  249. 'callback' => 'node_publish_action',
  250. 'parameters' => '',
  251. 'description' => 'Publish post',
  252. ))
  253. ->values(array(
  254. 'aid' => 'node_save_action',
  255. 'type' => 'node',
  256. 'callback' => 'node_save_action',
  257. 'parameters' => '',
  258. 'description' => 'Save post',
  259. ))
  260. ->values(array(
  261. 'aid' => 'node_unpromote_action',
  262. 'type' => 'node',
  263. 'callback' => 'node_unpromote_action',
  264. 'parameters' => '',
  265. 'description' => 'Remove post from front page',
  266. ))
  267. ->values(array(
  268. 'aid' => 'node_unpublish_action',
  269. 'type' => 'node',
  270. 'callback' => 'node_unpublish_action',
  271. 'parameters' => '',
  272. 'description' => 'Unpublish post',
  273. ))
  274. ->values(array(
  275. 'aid' => 'user_block_ip_action',
  276. 'type' => 'user',
  277. 'callback' => 'user_block_ip_action',
  278. 'parameters' => '',
  279. 'description' => 'Ban IP address of current user',
  280. ))
  281. ->values(array(
  282. 'aid' => 'user_block_user_action',
  283. 'type' => 'user',
  284. 'callback' => 'user_block_user_action',
  285. 'parameters' => '',
  286. 'description' => 'Block current user',
  287. ))
  288. ->execute();
  289. $connection->schema()->createTable('actions_aid', array(
  290. 'fields' => array(
  291. 'aid' => array(
  292. 'type' => 'serial',
  293. 'not null' => TRUE,
  294. 'size' => 'normal',
  295. 'unsigned' => TRUE,
  296. ),
  297. ),
  298. 'primary key' => array(
  299. 'aid',
  300. ),
  301. 'mysql_character_set' => 'utf8',
  302. ));
  303. $connection->insert('actions_aid')
  304. ->fields(array(
  305. 'aid',
  306. ))
  307. ->values(array(
  308. 'aid' => '1',
  309. ))
  310. ->values(array(
  311. 'aid' => '2',
  312. ))
  313. ->values(array(
  314. 'aid' => '3',
  315. ))
  316. ->values(array(
  317. 'aid' => '4',
  318. ))
  319. ->values(array(
  320. 'aid' => '5',
  321. ))
  322. ->values(array(
  323. 'aid' => '6',
  324. ))
  325. ->execute();
  326. $connection->schema()->createTable('aggregator_category', array(
  327. 'fields' => array(
  328. 'cid' => array(
  329. 'type' => 'serial',
  330. 'not null' => TRUE,
  331. 'size' => 'normal',
  332. ),
  333. 'title' => array(
  334. 'type' => 'varchar',
  335. 'not null' => TRUE,
  336. 'length' => '255',
  337. 'default' => '',
  338. ),
  339. 'description' => array(
  340. 'type' => 'text',
  341. 'not null' => TRUE,
  342. 'size' => 'normal',
  343. ),
  344. 'block' => array(
  345. 'type' => 'int',
  346. 'not null' => TRUE,
  347. 'size' => 'normal',
  348. 'default' => '0',
  349. ),
  350. ),
  351. 'primary key' => array(
  352. 'cid',
  353. ),
  354. 'mysql_character_set' => 'utf8',
  355. ));
  356. $connection->schema()->createTable('aggregator_feed', array(
  357. 'fields' => array(
  358. 'fid' => array(
  359. 'type' => 'serial',
  360. 'not null' => TRUE,
  361. 'size' => 'normal',
  362. ),
  363. 'title' => array(
  364. 'type' => 'varchar',
  365. 'not null' => TRUE,
  366. 'length' => '255',
  367. 'default' => '',
  368. ),
  369. 'url' => array(
  370. 'type' => 'varchar',
  371. 'not null' => TRUE,
  372. 'length' => '255',
  373. 'default' => '',
  374. ),
  375. 'refresh' => array(
  376. 'type' => 'int',
  377. 'not null' => TRUE,
  378. 'size' => 'normal',
  379. 'default' => '0',
  380. ),
  381. 'checked' => array(
  382. 'type' => 'int',
  383. 'not null' => TRUE,
  384. 'size' => 'normal',
  385. 'default' => '0',
  386. ),
  387. 'link' => array(
  388. 'type' => 'varchar',
  389. 'not null' => TRUE,
  390. 'length' => '255',
  391. 'default' => '',
  392. ),
  393. 'description' => array(
  394. 'type' => 'text',
  395. 'not null' => TRUE,
  396. 'size' => 'normal',
  397. ),
  398. 'image' => array(
  399. 'type' => 'text',
  400. 'not null' => TRUE,
  401. 'size' => 'normal',
  402. ),
  403. 'etag' => array(
  404. 'type' => 'varchar',
  405. 'not null' => TRUE,
  406. 'length' => '255',
  407. 'default' => '',
  408. ),
  409. 'modified' => array(
  410. 'type' => 'int',
  411. 'not null' => TRUE,
  412. 'size' => 'normal',
  413. 'default' => '0',
  414. ),
  415. 'block' => array(
  416. 'type' => 'int',
  417. 'not null' => TRUE,
  418. 'size' => 'normal',
  419. 'default' => '0',
  420. ),
  421. ),
  422. 'primary key' => array(
  423. 'fid',
  424. ),
  425. 'mysql_character_set' => 'utf8',
  426. ));
  427. $connection->insert('aggregator_feed')
  428. ->fields(array(
  429. 'fid',
  430. 'title',
  431. 'url',
  432. 'refresh',
  433. 'checked',
  434. 'link',
  435. 'description',
  436. 'image',
  437. 'etag',
  438. 'modified',
  439. 'block',
  440. ))
  441. ->values(array(
  442. 'fid' => '5',
  443. 'title' => 'Know Your Meme',
  444. 'url' => 'http://knowyourmeme.com/newsfeed.rss',
  445. 'refresh' => '900',
  446. 'checked' => '1387659487',
  447. 'link' => 'http://knowyourmeme.com',
  448. 'description' => 'New items added to the News Feed',
  449. 'image' => 'http://b.thumbs.redditmedia.com/harEHsUUZVajabtC.png',
  450. 'etag' => '"213cc1365b96c310e92053c5551f0504"',
  451. 'modified' => '0',
  452. 'block' => '7',
  453. ))
  454. ->execute();
  455. $connection->schema()->createTable('aggregator_item', array(
  456. 'fields' => array(
  457. 'iid' => array(
  458. 'type' => 'serial',
  459. 'not null' => TRUE,
  460. 'size' => 'normal',
  461. ),
  462. 'fid' => array(
  463. 'type' => 'int',
  464. 'not null' => TRUE,
  465. 'size' => 'normal',
  466. 'default' => '0',
  467. ),
  468. 'title' => array(
  469. 'type' => 'varchar',
  470. 'not null' => TRUE,
  471. 'length' => '255',
  472. 'default' => '',
  473. ),
  474. 'link' => array(
  475. 'type' => 'varchar',
  476. 'not null' => TRUE,
  477. 'length' => '255',
  478. 'default' => '',
  479. ),
  480. 'author' => array(
  481. 'type' => 'varchar',
  482. 'not null' => TRUE,
  483. 'length' => '255',
  484. 'default' => '',
  485. ),
  486. 'description' => array(
  487. 'type' => 'text',
  488. 'not null' => TRUE,
  489. 'size' => 'normal',
  490. ),
  491. 'timestamp' => array(
  492. 'type' => 'int',
  493. 'not null' => FALSE,
  494. 'size' => 'normal',
  495. ),
  496. 'guid' => array(
  497. 'type' => 'varchar',
  498. 'not null' => FALSE,
  499. 'length' => '255',
  500. ),
  501. ),
  502. 'primary key' => array(
  503. 'iid',
  504. ),
  505. 'mysql_character_set' => 'utf8',
  506. ));
  507. $connection->insert('aggregator_item')
  508. ->fields(array(
  509. 'iid',
  510. 'fid',
  511. 'title',
  512. 'link',
  513. 'author',
  514. 'description',
  515. 'timestamp',
  516. 'guid',
  517. ))
  518. ->values(array(
  519. 'iid' => '1',
  520. 'fid' => '5',
  521. 'title' => 'This (three) weeks in Drupal Core - January 10th 2014',
  522. 'link' => 'https://groups.drupal.org/node/395218',
  523. 'author' => 'larowlan',
  524. 'description' => "<h2 id='new'>What's new with Drupal 8?</h2>",
  525. 'timestamp' => '1389297196',
  526. 'guid' => '395218 at https://groups.drupal.org',
  527. ))
  528. ->execute();
  529. $connection->schema()->createTable('authmap', array(
  530. 'fields' => array(
  531. 'aid' => array(
  532. 'type' => 'serial',
  533. 'not null' => TRUE,
  534. 'size' => 'normal',
  535. 'unsigned' => TRUE,
  536. ),
  537. 'uid' => array(
  538. 'type' => 'int',
  539. 'not null' => TRUE,
  540. 'size' => 'normal',
  541. 'default' => '0',
  542. ),
  543. 'authname' => array(
  544. 'type' => 'varchar',
  545. 'not null' => TRUE,
  546. 'length' => '128',
  547. 'default' => '',
  548. ),
  549. 'module' => array(
  550. 'type' => 'varchar',
  551. 'not null' => TRUE,
  552. 'length' => '128',
  553. 'default' => '',
  554. ),
  555. ),
  556. 'primary key' => array(
  557. 'aid',
  558. ),
  559. 'mysql_character_set' => 'utf8',
  560. ));
  561. $connection->schema()->createTable('batch', array(
  562. 'fields' => array(
  563. 'bid' => array(
  564. 'type' => 'serial',
  565. 'not null' => TRUE,
  566. 'size' => 'normal',
  567. 'unsigned' => TRUE,
  568. ),
  569. 'token' => array(
  570. 'type' => 'varchar',
  571. 'not null' => TRUE,
  572. 'length' => '64',
  573. ),
  574. 'timestamp' => array(
  575. 'type' => 'int',
  576. 'not null' => TRUE,
  577. 'size' => 'normal',
  578. ),
  579. 'batch' => array(
  580. 'type' => 'text',
  581. 'not null' => FALSE,
  582. 'size' => 'normal',
  583. ),
  584. ),
  585. 'primary key' => array(
  586. 'bid',
  587. ),
  588. 'mysql_character_set' => 'utf8',
  589. ));
  590. $connection->insert('batch')
  591. ->fields(array(
  592. 'bid',
  593. 'token',
  594. 'timestamp',
  595. 'batch',
  596. ))
  597. ->values(array(
  598. 'bid' => '1',
  599. 'token' => '',
  600. 'timestamp' => '1494966324',
  601. 'batch' => NULL,
  602. ))
  603. ->execute();
  604. $connection->schema()->createTable('blocks', array(
  605. 'fields' => array(
  606. 'bid' => array(
  607. 'type' => 'serial',
  608. 'not null' => TRUE,
  609. 'size' => 'normal',
  610. ),
  611. 'module' => array(
  612. 'type' => 'varchar',
  613. 'not null' => TRUE,
  614. 'length' => '64',
  615. 'default' => '',
  616. ),
  617. 'delta' => array(
  618. 'type' => 'varchar',
  619. 'not null' => TRUE,
  620. 'length' => '32',
  621. 'default' => '0',
  622. ),
  623. 'theme' => array(
  624. 'type' => 'varchar',
  625. 'not null' => TRUE,
  626. 'length' => '64',
  627. 'default' => '',
  628. ),
  629. 'status' => array(
  630. 'type' => 'int',
  631. 'not null' => TRUE,
  632. 'size' => 'normal',
  633. 'default' => '0',
  634. ),
  635. 'weight' => array(
  636. 'type' => 'int',
  637. 'not null' => TRUE,
  638. 'size' => 'normal',
  639. 'default' => '0',
  640. ),
  641. 'region' => array(
  642. 'type' => 'varchar',
  643. 'not null' => TRUE,
  644. 'length' => '64',
  645. 'default' => '',
  646. ),
  647. 'custom' => array(
  648. 'type' => 'int',
  649. 'not null' => TRUE,
  650. 'size' => 'normal',
  651. 'default' => '0',
  652. ),
  653. 'throttle' => array(
  654. 'type' => 'int',
  655. 'not null' => TRUE,
  656. 'size' => 'normal',
  657. 'default' => '0',
  658. ),
  659. 'visibility' => array(
  660. 'type' => 'int',
  661. 'not null' => TRUE,
  662. 'size' => 'normal',
  663. 'default' => '0',
  664. ),
  665. 'pages' => array(
  666. 'type' => 'text',
  667. 'not null' => TRUE,
  668. 'size' => 'normal',
  669. ),
  670. 'title' => array(
  671. 'type' => 'varchar',
  672. 'not null' => TRUE,
  673. 'length' => '64',
  674. 'default' => '',
  675. ),
  676. 'cache' => array(
  677. 'type' => 'int',
  678. 'not null' => TRUE,
  679. 'size' => 'normal',
  680. 'default' => '1',
  681. ),
  682. ),
  683. 'primary key' => array(
  684. 'bid',
  685. ),
  686. 'mysql_character_set' => 'utf8',
  687. ));
  688. $connection->insert('blocks')
  689. ->fields(array(
  690. 'bid',
  691. 'module',
  692. 'delta',
  693. 'theme',
  694. 'status',
  695. 'weight',
  696. 'region',
  697. 'custom',
  698. 'throttle',
  699. 'visibility',
  700. 'pages',
  701. 'title',
  702. 'cache',
  703. ))
  704. ->values(array(
  705. 'bid' => '1',
  706. 'module' => 'user',
  707. 'delta' => '0',
  708. 'theme' => 'garland',
  709. 'status' => '1',
  710. 'weight' => '-10',
  711. 'region' => 'left',
  712. 'custom' => '0',
  713. 'throttle' => '0',
  714. 'visibility' => '0',
  715. 'pages' => "<front>\r\nnode/1\nblog/*",
  716. 'title' => '',
  717. 'cache' => '-1',
  718. ))
  719. ->values(array(
  720. 'bid' => '2',
  721. 'module' => 'user',
  722. 'delta' => '1',
  723. 'theme' => 'garland',
  724. 'status' => '1',
  725. 'weight' => '-11',
  726. 'region' => 'left',
  727. 'custom' => '0',
  728. 'throttle' => '0',
  729. 'visibility' => '0',
  730. 'pages' => '',
  731. 'title' => 'zu - Navigation',
  732. 'cache' => '-1',
  733. ))
  734. ->values(array(
  735. 'bid' => '3',
  736. 'module' => 'system',
  737. 'delta' => '0',
  738. 'theme' => 'garland',
  739. 'status' => '1',
  740. 'weight' => '-5',
  741. 'region' => 'footer',
  742. 'custom' => '0',
  743. 'throttle' => '0',
  744. 'visibility' => '0',
  745. 'pages' => 'node/1',
  746. 'title' => '',
  747. 'cache' => '-1',
  748. ))
  749. ->values(array(
  750. 'bid' => '4',
  751. 'module' => 'comment',
  752. 'delta' => '0',
  753. 'theme' => 'garland',
  754. 'status' => '0',
  755. 'weight' => '-9',
  756. 'region' => '',
  757. 'custom' => '0',
  758. 'throttle' => '0',
  759. 'visibility' => '0',
  760. 'pages' => '',
  761. 'title' => '',
  762. 'cache' => '1',
  763. ))
  764. ->values(array(
  765. 'bid' => '5',
  766. 'module' => 'menu',
  767. 'delta' => 'primary-links',
  768. 'theme' => 'garland',
  769. 'status' => '1',
  770. 'weight' => '-5',
  771. 'region' => 'header',
  772. 'custom' => '0',
  773. 'throttle' => '0',
  774. 'visibility' => '0',
  775. 'pages' => '',
  776. 'title' => '',
  777. 'cache' => '-1',
  778. ))
  779. ->values(array(
  780. 'bid' => '6',
  781. 'module' => 'menu',
  782. 'delta' => 'secondary-links',
  783. 'theme' => 'garland',
  784. 'status' => '0',
  785. 'weight' => '-8',
  786. 'region' => '',
  787. 'custom' => '0',
  788. 'throttle' => '0',
  789. 'visibility' => '0',
  790. 'pages' => '',
  791. 'title' => '',
  792. 'cache' => '-1',
  793. ))
  794. ->values(array(
  795. 'bid' => '7',
  796. 'module' => 'node',
  797. 'delta' => '0',
  798. 'theme' => 'garland',
  799. 'status' => '0',
  800. 'weight' => '-7',
  801. 'region' => '',
  802. 'custom' => '0',
  803. 'throttle' => '0',
  804. 'visibility' => '0',
  805. 'pages' => '',
  806. 'title' => '',
  807. 'cache' => '-1',
  808. ))
  809. ->values(array(
  810. 'bid' => '8',
  811. 'module' => 'user',
  812. 'delta' => '2',
  813. 'theme' => 'garland',
  814. 'status' => '1',
  815. 'weight' => '-11',
  816. 'region' => 'right',
  817. 'custom' => '0',
  818. 'throttle' => '0',
  819. 'visibility' => '0',
  820. 'pages' => '',
  821. 'title' => '',
  822. 'cache' => '1',
  823. ))
  824. ->values(array(
  825. 'bid' => '9',
  826. 'module' => 'user',
  827. 'delta' => '3',
  828. 'theme' => 'garland',
  829. 'status' => '1',
  830. 'weight' => '-10',
  831. 'region' => 'right',
  832. 'custom' => '0',
  833. 'throttle' => '0',
  834. 'visibility' => '0',
  835. 'pages' => '',
  836. 'title' => '',
  837. 'cache' => '-1',
  838. ))
  839. ->values(array(
  840. 'bid' => '10',
  841. 'module' => 'block',
  842. 'delta' => '1',
  843. 'theme' => 'garland',
  844. 'status' => '1',
  845. 'weight' => '0',
  846. 'region' => 'content',
  847. 'custom' => '0',
  848. 'throttle' => '0',
  849. 'visibility' => '1',
  850. 'pages' => '<front>',
  851. 'title' => 'Static Block',
  852. 'cache' => '-1',
  853. ))
  854. ->values(array(
  855. 'bid' => '11',
  856. 'module' => 'block',
  857. 'delta' => '2',
  858. 'theme' => 'bluemarine',
  859. 'status' => '1',
  860. 'weight' => '-4',
  861. 'region' => 'right',
  862. 'custom' => '0',
  863. 'throttle' => '0',
  864. 'visibility' => '1',
  865. 'pages' => 'node',
  866. 'title' => 'Another Static Block',
  867. 'cache' => '-1',
  868. ))
  869. ->values(array(
  870. 'bid' => '12',
  871. 'module' => 'block',
  872. 'delta' => '1',
  873. 'theme' => 'test_theme',
  874. 'status' => '1',
  875. 'weight' => '-7',
  876. 'region' => 'right',
  877. 'custom' => '0',
  878. 'throttle' => '0',
  879. 'visibility' => '0',
  880. 'pages' => '',
  881. 'title' => '',
  882. 'cache' => '-1',
  883. ))
  884. ->values(array(
  885. 'bid' => '13',
  886. 'module' => 'block',
  887. 'delta' => '2',
  888. 'theme' => 'test_theme',
  889. 'status' => '1',
  890. 'weight' => '-2',
  891. 'region' => 'left',
  892. 'custom' => '0',
  893. 'throttle' => '0',
  894. 'visibility' => '2',
  895. 'pages' => "<?php\nreturn TRUE;",
  896. 'title' => '',
  897. 'cache' => '-1',
  898. ))
  899. ->values(array(
  900. 'bid' => '14',
  901. 'module' => 'aggregator',
  902. 'delta' => 'feed-5',
  903. 'theme' => 'garland',
  904. 'status' => '1',
  905. 'weight' => '-2',
  906. 'region' => 'right',
  907. 'custom' => '0',
  908. 'throttle' => '0',
  909. 'visibility' => '0',
  910. 'pages' => '',
  911. 'title' => '',
  912. 'cache' => '1',
  913. ))
  914. ->values(array(
  915. 'bid' => '15',
  916. 'module' => 'block',
  917. 'delta' => '2',
  918. 'theme' => 'garland',
  919. 'status' => '0',
  920. 'weight' => '1',
  921. 'region' => '',
  922. 'custom' => '0',
  923. 'throttle' => '0',
  924. 'visibility' => '0',
  925. 'pages' => '',
  926. 'title' => '',
  927. 'cache' => '-1',
  928. ))
  929. ->values(array(
  930. 'bid' => '16',
  931. 'module' => 'profile',
  932. 'delta' => '0',
  933. 'theme' => 'garland',
  934. 'status' => '0',
  935. 'weight' => '-5',
  936. 'region' => '',
  937. 'custom' => '0',
  938. 'throttle' => '0',
  939. 'visibility' => '0',
  940. 'pages' => '',
  941. 'title' => '',
  942. 'cache' => '5',
  943. ))
  944. ->values(array(
  945. 'bid' => '17',
  946. 'module' => 'event',
  947. 'delta' => '0',
  948. 'theme' => 'garland',
  949. 'status' => '0',
  950. 'weight' => '-3',
  951. 'region' => '',
  952. 'custom' => '0',
  953. 'throttle' => '0',
  954. 'visibility' => '0',
  955. 'pages' => '',
  956. 'title' => '',
  957. 'cache' => '1',
  958. ))
  959. ->values(array(
  960. 'bid' => '18',
  961. 'module' => 'event',
  962. 'delta' => '1',
  963. 'theme' => 'garland',
  964. 'status' => '0',
  965. 'weight' => '0',
  966. 'region' => '',
  967. 'custom' => '0',
  968. 'throttle' => '0',
  969. 'visibility' => '0',
  970. 'pages' => '',
  971. 'title' => '',
  972. 'cache' => '1',
  973. ))
  974. ->values(array(
  975. 'bid' => '19',
  976. 'module' => 'event',
  977. 'delta' => 'event-upcoming-event',
  978. 'theme' => 'garland',
  979. 'status' => '0',
  980. 'weight' => '-1',
  981. 'region' => '',
  982. 'custom' => '0',
  983. 'throttle' => '0',
  984. 'visibility' => '0',
  985. 'pages' => '',
  986. 'title' => '',
  987. 'cache' => '1',
  988. ))
  989. ->values(array(
  990. 'bid' => '20',
  991. 'module' => 'book',
  992. 'delta' => '0',
  993. 'theme' => 'garland',
  994. 'status' => '1',
  995. 'weight' => '-4',
  996. 'region' => 'right',
  997. 'custom' => '0',
  998. 'throttle' => '0',
  999. 'visibility' => '0',
  1000. 'pages' => '',
  1001. 'title' => '',
  1002. 'cache' => '5',
  1003. ))
  1004. ->values(array(
  1005. 'bid' => '21',
  1006. 'module' => 'locale',
  1007. 'delta' => '0',
  1008. 'theme' => 'garland',
  1009. 'status' => '0',
  1010. 'weight' => '0',
  1011. 'region' => '',
  1012. 'custom' => '0',
  1013. 'throttle' => '0',
  1014. 'visibility' => '0',
  1015. 'pages' => '',
  1016. 'title' => '',
  1017. 'cache' => '-1',
  1018. ))
  1019. ->values(array(
  1020. 'bid' => '22',
  1021. 'module' => 'forum',
  1022. 'delta' => '0',
  1023. 'theme' => 'garland',
  1024. 'status' => '1',
  1025. 'weight' => '-8',
  1026. 'region' => 'left',
  1027. 'custom' => '0',
  1028. 'throttle' => '0',
  1029. 'visibility' => '0',
  1030. 'pages' => '',
  1031. 'title' => '',
  1032. 'cache' => '1',
  1033. ))
  1034. ->values(array(
  1035. 'bid' => '23',
  1036. 'module' => 'forum',
  1037. 'delta' => '1',
  1038. 'theme' => 'garland',
  1039. 'status' => '1',
  1040. 'weight' => '-9',
  1041. 'region' => 'left',
  1042. 'custom' => '0',
  1043. 'throttle' => '0',
  1044. 'visibility' => '0',
  1045. 'pages' => '',
  1046. 'title' => '',
  1047. 'cache' => '1',
  1048. ))
  1049. ->values(array(
  1050. 'bid' => '24',
  1051. 'module' => 'statistics',
  1052. 'delta' => '0',
  1053. 'theme' => 'garland',
  1054. 'status' => '1',
  1055. 'weight' => '0',
  1056. 'region' => 'right',
  1057. 'custom' => '0',
  1058. 'throttle' => '0',
  1059. 'visibility' => '0',
  1060. 'pages' => '',
  1061. 'title' => '',
  1062. 'cache' => '-1',
  1063. ))
  1064. ->execute();
  1065. $connection->schema()->createTable('blocks_roles', array(
  1066. 'fields' => array(
  1067. 'module' => array(
  1068. 'type' => 'varchar',
  1069. 'not null' => TRUE,
  1070. 'length' => '64',
  1071. ),
  1072. 'delta' => array(
  1073. 'type' => 'varchar',
  1074. 'not null' => TRUE,
  1075. 'length' => '32',
  1076. ),
  1077. 'rid' => array(
  1078. 'type' => 'int',
  1079. 'not null' => TRUE,
  1080. 'size' => 'normal',
  1081. 'unsigned' => TRUE,
  1082. ),
  1083. ),
  1084. 'primary key' => array(
  1085. 'module',
  1086. 'delta',
  1087. 'rid',
  1088. ),
  1089. 'mysql_character_set' => 'utf8',
  1090. ));
  1091. $connection->insert('blocks_roles')
  1092. ->fields(array(
  1093. 'module',
  1094. 'delta',
  1095. 'rid',
  1096. ))
  1097. ->values(array(
  1098. 'module' => 'user',
  1099. 'delta' => '2',
  1100. 'rid' => '2',
  1101. ))
  1102. ->values(array(
  1103. 'module' => 'user',
  1104. 'delta' => '3',
  1105. 'rid' => '3',
  1106. ))
  1107. ->execute();
  1108. $connection->schema()->createTable('book', array(
  1109. 'fields' => array(
  1110. 'mlid' => array(
  1111. 'type' => 'int',
  1112. 'not null' => TRUE,
  1113. 'size' => 'normal',
  1114. 'default' => '0',
  1115. 'unsigned' => TRUE,
  1116. ),
  1117. 'nid' => array(
  1118. 'type' => 'int',
  1119. 'not null' => TRUE,
  1120. 'size' => 'normal',
  1121. 'default' => '0',
  1122. 'unsigned' => TRUE,
  1123. ),
  1124. 'bid' => array(
  1125. 'type' => 'int',
  1126. 'not null' => TRUE,
  1127. 'size' => 'normal',
  1128. 'default' => '0',
  1129. 'unsigned' => TRUE,
  1130. ),
  1131. ),
  1132. 'primary key' => array(
  1133. 'mlid',
  1134. ),
  1135. 'mysql_character_set' => 'utf8',
  1136. ));
  1137. $connection->insert('book')
  1138. ->fields(array(
  1139. 'mlid',
  1140. 'nid',
  1141. 'bid',
  1142. ))
  1143. ->values(array(
  1144. 'mlid' => '1',
  1145. 'nid' => '4',
  1146. 'bid' => '4',
  1147. ))
  1148. ->values(array(
  1149. 'mlid' => '2',
  1150. 'nid' => '5',
  1151. 'bid' => '4',
  1152. ))
  1153. ->values(array(
  1154. 'mlid' => '3',
  1155. 'nid' => '6',
  1156. 'bid' => '4',
  1157. ))
  1158. ->values(array(
  1159. 'mlid' => '4',
  1160. 'nid' => '7',
  1161. 'bid' => '4',
  1162. ))
  1163. ->values(array(
  1164. 'mlid' => '5',
  1165. 'nid' => '8',
  1166. 'bid' => '8',
  1167. ))
  1168. ->execute();
  1169. $connection->schema()->createTable('boxes', array(
  1170. 'fields' => array(
  1171. 'bid' => array(
  1172. 'type' => 'serial',
  1173. 'not null' => TRUE,
  1174. 'size' => 'normal',
  1175. 'unsigned' => TRUE,
  1176. ),
  1177. 'body' => array(
  1178. 'type' => 'text',
  1179. 'not null' => FALSE,
  1180. 'size' => 'normal',
  1181. ),
  1182. 'info' => array(
  1183. 'type' => 'varchar',
  1184. 'not null' => TRUE,
  1185. 'length' => '128',
  1186. 'default' => '',
  1187. ),
  1188. 'format' => array(
  1189. 'type' => 'int',
  1190. 'not null' => TRUE,
  1191. 'size' => 'normal',
  1192. 'default' => '0',
  1193. ),
  1194. ),
  1195. 'primary key' => array(
  1196. 'bid',
  1197. ),
  1198. 'mysql_character_set' => 'utf8',
  1199. ));
  1200. $connection->insert('boxes')
  1201. ->fields(array(
  1202. 'bid',
  1203. 'body',
  1204. 'info',
  1205. 'format',
  1206. ))
  1207. ->values(array(
  1208. 'bid' => '1',
  1209. 'body' => '<h3>My first custom block body</h3>',
  1210. 'info' => 'My block 1',
  1211. 'format' => '2',
  1212. ))
  1213. ->values(array(
  1214. 'bid' => '2',
  1215. 'body' => '<h3>My second custom block body</h3>',
  1216. 'info' => 'My block 2',
  1217. 'format' => '2',
  1218. ))
  1219. ->execute();
  1220. $connection->schema()->createTable('cache', array(
  1221. 'fields' => array(
  1222. 'cid' => array(
  1223. 'type' => 'varchar',
  1224. 'not null' => TRUE,
  1225. 'length' => '255',
  1226. 'default' => '',
  1227. ),
  1228. 'data' => array(
  1229. 'type' => 'blob',
  1230. 'not null' => FALSE,
  1231. 'size' => 'big',
  1232. ),
  1233. 'expire' => array(
  1234. 'type' => 'int',
  1235. 'not null' => TRUE,
  1236. 'size' => 'normal',
  1237. 'default' => '0',
  1238. ),
  1239. 'created' => array(
  1240. 'type' => 'int',
  1241. 'not null' => TRUE,
  1242. 'size' => 'normal',
  1243. 'default' => '0',
  1244. ),
  1245. 'headers' => array(
  1246. 'type' => 'text',
  1247. 'not null' => FALSE,
  1248. 'size' => 'normal',
  1249. ),
  1250. 'serialized' => array(
  1251. 'type' => 'int',
  1252. 'not null' => TRUE,
  1253. 'size' => 'normal',
  1254. 'default' => '0',
  1255. ),
  1256. ),
  1257. 'primary key' => array(
  1258. 'cid',
  1259. ),
  1260. 'mysql_character_set' => 'utf8',
  1261. ));
  1262. $connection->schema()->createTable('cache_block', array(
  1263. 'fields' => array(
  1264. 'cid' => array(
  1265. 'type' => 'varchar',
  1266. 'not null' => TRUE,
  1267. 'length' => '255',
  1268. 'default' => '',
  1269. ),
  1270. 'data' => array(
  1271. 'type' => 'blob',
  1272. 'not null' => FALSE,
  1273. 'size' => 'big',
  1274. ),
  1275. 'expire' => array(
  1276. 'type' => 'int',
  1277. 'not null' => TRUE,
  1278. 'size' => 'normal',
  1279. 'default' => '0',
  1280. ),
  1281. 'created' => array(
  1282. 'type' => 'int',
  1283. 'not null' => TRUE,
  1284. 'size' => 'normal',
  1285. 'default' => '0',
  1286. ),
  1287. 'headers' => array(
  1288. 'type' => 'text',
  1289. 'not null' => FALSE,
  1290. 'size' => 'normal',
  1291. ),
  1292. 'serialized' => array(
  1293. 'type' => 'int',
  1294. 'not null' => TRUE,
  1295. 'size' => 'normal',
  1296. 'default' => '0',
  1297. ),
  1298. ),
  1299. 'primary key' => array(
  1300. 'cid',
  1301. ),
  1302. 'mysql_character_set' => 'utf8',
  1303. ));
  1304. $connection->schema()->createTable('cache_bootstrap', array(
  1305. 'fields' => array(
  1306. 'cid' => array(
  1307. 'type' => 'varchar',
  1308. 'not null' => TRUE,
  1309. 'length' => '255',
  1310. 'default' => '',
  1311. ),
  1312. 'data' => array(
  1313. 'type' => 'blob',
  1314. 'not null' => FALSE,
  1315. 'size' => 'big',
  1316. ),
  1317. 'expire' => array(
  1318. 'type' => 'int',
  1319. 'not null' => TRUE,
  1320. 'size' => 'normal',
  1321. 'default' => '0',
  1322. ),
  1323. 'created' => array(
  1324. 'type' => 'numeric',
  1325. 'not null' => TRUE,
  1326. 'precision' => '14',
  1327. 'scale' => '3',
  1328. 'default' => '0.000',
  1329. ),
  1330. 'serialized' => array(
  1331. 'type' => 'int',
  1332. 'not null' => TRUE,
  1333. 'size' => 'normal',
  1334. 'default' => '0',
  1335. ),
  1336. 'tags' => array(
  1337. 'type' => 'text',
  1338. 'not null' => FALSE,
  1339. 'size' => 'normal',
  1340. ),
  1341. 'checksum_invalidations' => array(
  1342. 'type' => 'int',
  1343. 'not null' => TRUE,
  1344. 'size' => 'normal',
  1345. 'default' => '0',
  1346. ),
  1347. 'checksum_deletions' => array(
  1348. 'type' => 'int',
  1349. 'not null' => TRUE,
  1350. 'size' => 'normal',
  1351. 'default' => '0',
  1352. ),
  1353. ),
  1354. 'primary key' => array(
  1355. 'cid',
  1356. ),
  1357. 'mysql_character_set' => 'utf8',
  1358. ));
  1359. $connection->schema()->createTable('cache_config', array(
  1360. 'fields' => array(
  1361. 'cid' => array(
  1362. 'type' => 'varchar',
  1363. 'not null' => TRUE,
  1364. 'length' => '255',
  1365. 'default' => '',
  1366. ),
  1367. 'data' => array(
  1368. 'type' => 'blob',
  1369. 'not null' => FALSE,
  1370. 'size' => 'big',
  1371. ),
  1372. 'expire' => array(
  1373. 'type' => 'int',
  1374. 'not null' => TRUE,
  1375. 'size' => 'normal',
  1376. 'default' => '0',
  1377. ),
  1378. 'created' => array(
  1379. 'type' => 'numeric',
  1380. 'not null' => TRUE,
  1381. 'precision' => '14',
  1382. 'scale' => '3',
  1383. 'default' => '0.000',
  1384. ),
  1385. 'serialized' => array(
  1386. 'type' => 'int',
  1387. 'not null' => TRUE,
  1388. 'size' => 'normal',
  1389. 'default' => '0',
  1390. ),
  1391. 'tags' => array(
  1392. 'type' => 'text',
  1393. 'not null' => FALSE,
  1394. 'size' => 'normal',
  1395. ),
  1396. 'checksum_invalidations' => array(
  1397. 'type' => 'int',
  1398. 'not null' => TRUE,
  1399. 'size' => 'normal',
  1400. 'default' => '0',
  1401. ),
  1402. 'checksum_deletions' => array(
  1403. 'type' => 'int',
  1404. 'not null' => TRUE,
  1405. 'size' => 'normal',
  1406. 'default' => '0',
  1407. ),
  1408. ),
  1409. 'primary key' => array(
  1410. 'cid',
  1411. ),
  1412. 'mysql_character_set' => 'utf8',
  1413. ));
  1414. $connection->schema()->createTable('cache_content', array(
  1415. 'fields' => array(
  1416. 'cid' => array(
  1417. 'type' => 'varchar',
  1418. 'not null' => TRUE,
  1419. 'length' => '255',
  1420. 'default' => '',
  1421. ),
  1422. 'data' => array(
  1423. 'type' => 'blob',
  1424. 'not null' => FALSE,
  1425. 'size' => 'big',
  1426. ),
  1427. 'expire' => array(
  1428. 'type' => 'int',
  1429. 'not null' => TRUE,
  1430. 'size' => 'normal',
  1431. 'default' => '0',
  1432. ),
  1433. 'created' => array(
  1434. 'type' => 'int',
  1435. 'not null' => TRUE,
  1436. 'size' => 'normal',
  1437. 'default' => '0',
  1438. ),
  1439. 'headers' => array(
  1440. 'type' => 'text',
  1441. 'not null' => FALSE,
  1442. 'size' => 'normal',
  1443. ),
  1444. 'serialized' => array(
  1445. 'type' => 'int',
  1446. 'not null' => TRUE,
  1447. 'size' => 'normal',
  1448. 'default' => '0',
  1449. ),
  1450. ),
  1451. 'primary key' => array(
  1452. 'cid',
  1453. ),
  1454. 'mysql_character_set' => 'utf8',
  1455. ));
  1456. $connection->schema()->createTable('cache_discovery', array(
  1457. 'fields' => array(
  1458. 'cid' => array(
  1459. 'type' => 'varchar',
  1460. 'not null' => TRUE,
  1461. 'length' => '255',
  1462. 'default' => '',
  1463. ),
  1464. 'data' => array(
  1465. 'type' => 'blob',
  1466. 'not null' => FALSE,
  1467. 'size' => 'big',
  1468. ),
  1469. 'expire' => array(
  1470. 'type' => 'int',
  1471. 'not null' => TRUE,
  1472. 'size' => 'normal',
  1473. 'default' => '0',
  1474. ),
  1475. 'created' => array(
  1476. 'type' => 'numeric',
  1477. 'not null' => TRUE,
  1478. 'precision' => '14',
  1479. 'scale' => '3',
  1480. 'default' => '0.000',
  1481. ),
  1482. 'serialized' => array(
  1483. 'type' => 'int',
  1484. 'not null' => TRUE,
  1485. 'size' => 'normal',
  1486. 'default' => '0',
  1487. ),
  1488. 'tags' => array(
  1489. 'type' => 'text',
  1490. 'not null' => FALSE,
  1491. 'size' => 'normal',
  1492. ),
  1493. 'checksum_invalidations' => array(
  1494. 'type' => 'int',
  1495. 'not null' => TRUE,
  1496. 'size' => 'normal',
  1497. 'default' => '0',
  1498. ),
  1499. 'checksum_deletions' => array(
  1500. 'type' => 'int',
  1501. 'not null' => TRUE,
  1502. 'size' => 'normal',
  1503. 'default' => '0',
  1504. ),
  1505. ),
  1506. 'primary key' => array(
  1507. 'cid',
  1508. ),
  1509. 'mysql_character_set' => 'utf8',
  1510. ));
  1511. $connection->schema()->createTable('cache_filter', array(
  1512. 'fields' => array(
  1513. 'cid' => array(
  1514. 'type' => 'varchar',
  1515. 'not null' => TRUE,
  1516. 'length' => '255',
  1517. 'default' => '',
  1518. ),
  1519. 'data' => array(
  1520. 'type' => 'blob',
  1521. 'not null' => FALSE,
  1522. 'size' => 'big',
  1523. ),
  1524. 'expire' => array(
  1525. 'type' => 'int',
  1526. 'not null' => TRUE,
  1527. 'size' => 'normal',
  1528. 'default' => '0',
  1529. ),
  1530. 'created' => array(
  1531. 'type' => 'int',
  1532. 'not null' => TRUE,
  1533. 'size' => 'normal',
  1534. 'default' => '0',
  1535. ),
  1536. 'headers' => array(
  1537. 'type' => 'text',
  1538. 'not null' => FALSE,
  1539. 'size' => 'normal',
  1540. ),
  1541. 'serialized' => array(
  1542. 'type' => 'int',
  1543. 'not null' => TRUE,
  1544. 'size' => 'normal',
  1545. 'default' => '0',
  1546. ),
  1547. ),
  1548. 'primary key' => array(
  1549. 'cid',
  1550. ),
  1551. 'mysql_character_set' => 'utf8',
  1552. ));
  1553. $connection->schema()->createTable('cache_form', array(
  1554. 'fields' => array(
  1555. 'cid' => array(
  1556. 'type' => 'varchar',
  1557. 'not null' => TRUE,
  1558. 'length' => '255',
  1559. 'default' => '',
  1560. ),
  1561. 'data' => array(
  1562. 'type' => 'blob',
  1563. 'not null' => FALSE,
  1564. 'size' => 'big',
  1565. ),
  1566. 'expire' => array(
  1567. 'type' => 'int',
  1568. 'not null' => TRUE,
  1569. 'size' => 'normal',
  1570. 'default' => '0',
  1571. ),
  1572. 'created' => array(
  1573. 'type' => 'int',
  1574. 'not null' => TRUE,
  1575. 'size' => 'normal',
  1576. 'default' => '0',
  1577. ),
  1578. 'headers' => array(
  1579. 'type' => 'text',
  1580. 'not null' => FALSE,
  1581. 'size' => 'normal',
  1582. ),
  1583. 'serialized' => array(
  1584. 'type' => 'int',
  1585. 'not null' => TRUE,
  1586. 'size' => 'normal',
  1587. 'default' => '0',
  1588. ),
  1589. ),
  1590. 'primary key' => array(
  1591. 'cid',
  1592. ),
  1593. 'mysql_character_set' => 'utf8',
  1594. ));
  1595. $connection->schema()->createTable('cache_menu', array(
  1596. 'fields' => array(
  1597. 'cid' => array(
  1598. 'type' => 'varchar',
  1599. 'not null' => TRUE,
  1600. 'length' => '255',
  1601. 'default' => '',
  1602. ),
  1603. 'data' => array(
  1604. 'type' => 'blob',
  1605. 'not null' => FALSE,
  1606. 'size' => 'big',
  1607. ),
  1608. 'expire' => array(
  1609. 'type' => 'int',
  1610. 'not null' => TRUE,
  1611. 'size' => 'normal',
  1612. 'default' => '0',
  1613. ),
  1614. 'created' => array(
  1615. 'type' => 'int',
  1616. 'not null' => TRUE,
  1617. 'size' => 'normal',
  1618. 'default' => '0',
  1619. ),
  1620. 'headers' => array(
  1621. 'type' => 'text',
  1622. 'not null' => FALSE,
  1623. 'size' => 'normal',
  1624. ),
  1625. 'serialized' => array(
  1626. 'type' => 'int',
  1627. 'not null' => TRUE,
  1628. 'size' => 'normal',
  1629. 'default' => '0',
  1630. ),
  1631. ),
  1632. 'primary key' => array(
  1633. 'cid',
  1634. ),
  1635. 'mysql_character_set' => 'utf8',
  1636. ));
  1637. $connection->schema()->createTable('cache_page', array(
  1638. 'fields' => array(
  1639. 'cid' => array(
  1640. 'type' => 'varchar',
  1641. 'not null' => TRUE,
  1642. 'length' => '255',
  1643. 'default' => '',
  1644. ),
  1645. 'data' => array(
  1646. 'type' => 'blob',
  1647. 'not null' => FALSE,
  1648. 'size' => 'big',
  1649. ),
  1650. 'expire' => array(
  1651. 'type' => 'int',
  1652. 'not null' => TRUE,
  1653. 'size' => 'normal',
  1654. 'default' => '0',
  1655. ),
  1656. 'created' => array(
  1657. 'type' => 'int',
  1658. 'not null' => TRUE,
  1659. 'size' => 'normal',
  1660. 'default' => '0',
  1661. ),
  1662. 'headers' => array(
  1663. 'type' => 'text',
  1664. 'not null' => FALSE,
  1665. 'size' => 'normal',
  1666. ),
  1667. 'serialized' => array(
  1668. 'type' => 'int',
  1669. 'not null' => TRUE,
  1670. 'size' => 'normal',
  1671. 'default' => '0',
  1672. ),
  1673. ),
  1674. 'primary key' => array(
  1675. 'cid',
  1676. ),
  1677. 'mysql_character_set' => 'utf8',
  1678. ));
  1679. $connection->schema()->createTable('cache_update', array(
  1680. 'fields' => array(
  1681. 'cid' => array(
  1682. 'type' => 'varchar',
  1683. 'not null' => TRUE,
  1684. 'length' => '255',
  1685. 'default' => '',
  1686. ),
  1687. 'data' => array(
  1688. 'type' => 'blob',
  1689. 'not null' => FALSE,
  1690. 'size' => 'big',
  1691. ),
  1692. 'expire' => array(
  1693. 'type' => 'int',
  1694. 'not null' => TRUE,
  1695. 'size' => 'normal',
  1696. 'default' => '0',
  1697. ),
  1698. 'created' => array(
  1699. 'type' => 'int',
  1700. 'not null' => TRUE,
  1701. 'size' => 'normal',
  1702. 'default' => '0',
  1703. ),
  1704. 'headers' => array(
  1705. 'type' => 'text',
  1706. 'not null' => FALSE,
  1707. 'size' => 'normal',
  1708. ),
  1709. 'serialized' => array(
  1710. 'type' => 'int',
  1711. 'not null' => TRUE,
  1712. 'size' => 'normal',
  1713. 'default' => '0',
  1714. ),
  1715. ),
  1716. 'primary key' => array(
  1717. 'cid',
  1718. ),
  1719. 'mysql_character_set' => 'utf8',
  1720. ));
  1721. $connection->schema()->createTable('cachetags', array(
  1722. 'fields' => array(
  1723. 'tag' => array(
  1724. 'type' => 'varchar',
  1725. 'not null' => TRUE,
  1726. 'length' => '255',
  1727. 'default' => '',
  1728. ),
  1729. 'invalidations' => array(
  1730. 'type' => 'int',
  1731. 'not null' => TRUE,
  1732. 'size' => 'normal',
  1733. 'default' => '0',
  1734. ),
  1735. 'deletions' => array(
  1736. 'type' => 'int',
  1737. 'not null' => TRUE,
  1738. 'size' => 'normal',
  1739. 'default' => '0',
  1740. ),
  1741. ),
  1742. 'primary key' => array(
  1743. 'tag',
  1744. ),
  1745. 'mysql_character_set' => 'utf8',
  1746. ));
  1747. $connection->schema()->createTable('comments', array(
  1748. 'fields' => array(
  1749. 'cid' => array(
  1750. 'type' => 'serial',
  1751. 'not null' => TRUE,
  1752. 'size' => 'normal',
  1753. ),
  1754. 'pid' => array(
  1755. 'type' => 'int',
  1756. 'not null' => TRUE,
  1757. 'size' => 'normal',
  1758. 'default' => '0',
  1759. ),
  1760. 'nid' => array(
  1761. 'type' => 'int',
  1762. 'not null' => TRUE,
  1763. 'size' => 'normal',
  1764. 'default' => '0',
  1765. ),
  1766. 'uid' => array(
  1767. 'type' => 'int',
  1768. 'not null' => TRUE,
  1769. 'size' => 'normal',
  1770. 'default' => '0',
  1771. ),
  1772. 'subject' => array(
  1773. 'type' => 'varchar',
  1774. 'not null' => TRUE,
  1775. 'length' => '64',
  1776. 'default' => '',
  1777. ),
  1778. 'comment' => array(
  1779. 'type' => 'text',
  1780. 'not null' => TRUE,
  1781. 'size' => 'normal',
  1782. ),
  1783. 'hostname' => array(
  1784. 'type' => 'varchar',
  1785. 'not null' => TRUE,
  1786. 'length' => '128',
  1787. 'default' => '',
  1788. ),
  1789. 'timestamp' => array(
  1790. 'type' => 'int',
  1791. 'not null' => TRUE,
  1792. 'size' => 'normal',
  1793. 'default' => '0',
  1794. ),
  1795. 'status' => array(
  1796. 'type' => 'int',
  1797. 'not null' => TRUE,
  1798. 'size' => 'normal',
  1799. 'default' => '0',
  1800. 'unsigned' => TRUE,
  1801. ),
  1802. 'format' => array(
  1803. 'type' => 'int',
  1804. 'not null' => TRUE,
  1805. 'size' => 'normal',
  1806. 'default' => '0',
  1807. ),
  1808. 'thread' => array(
  1809. 'type' => 'varchar',
  1810. 'not null' => TRUE,
  1811. 'length' => '255',
  1812. ),
  1813. 'name' => array(
  1814. 'type' => 'varchar',
  1815. 'not null' => FALSE,
  1816. 'length' => '60',
  1817. ),
  1818. 'mail' => array(
  1819. 'type' => 'varchar',
  1820. 'not null' => FALSE,
  1821. 'length' => '64',
  1822. ),
  1823. 'homepage' => array(
  1824. 'type' => 'varchar',
  1825. 'not null' => FALSE,
  1826. 'length' => '255',
  1827. ),
  1828. ),
  1829. 'primary key' => array(
  1830. 'cid',
  1831. ),
  1832. 'indexes' => array(
  1833. 'pid' => array(
  1834. 'pid',
  1835. ),
  1836. 'comment_uid' => array(
  1837. 'uid',
  1838. ),
  1839. ),
  1840. 'mysql_character_set' => 'utf8',
  1841. ));
  1842. $connection->insert('comments')
  1843. ->fields(array(
  1844. 'cid',
  1845. 'pid',
  1846. 'nid',
  1847. 'uid',
  1848. 'subject',
  1849. 'comment',
  1850. 'hostname',
  1851. 'timestamp',
  1852. 'status',
  1853. 'format',
  1854. 'thread',
  1855. 'name',
  1856. 'mail',
  1857. 'homepage',
  1858. ))
  1859. ->values(array(
  1860. 'cid' => '1',
  1861. 'pid' => '0',
  1862. 'nid' => '1',
  1863. 'uid' => '0',
  1864. 'subject' => 'The first comment.',
  1865. 'comment' => 'The first comment body.',
  1866. 'hostname' => '203.0.113.1',
  1867. 'timestamp' => '1390264918',
  1868. 'status' => '0',
  1869. 'format' => '1',
  1870. 'thread' => '01/',
  1871. 'name' => '1st comment author name',
  1872. 'mail' => 'comment1@example.com',
  1873. 'homepage' => 'https://www.drupal.org',
  1874. ))
  1875. ->values(array(
  1876. 'cid' => '2',
  1877. 'pid' => '3',
  1878. 'nid' => '1',
  1879. 'uid' => '0',
  1880. 'subject' => 'The response to the second comment.',
  1881. 'comment' => 'The second comment response body.',
  1882. 'hostname' => '203.0.113.2',
  1883. 'timestamp' => '1390264938',
  1884. 'status' => '0',
  1885. 'format' => '1',
  1886. 'thread' => '02/01',
  1887. 'name' => '3rd comment author name',
  1888. 'mail' => 'comment3@example.com',
  1889. 'homepage' => 'https://www.drupal.org',
  1890. ))
  1891. ->values(array(
  1892. 'cid' => '3',
  1893. 'pid' => '0',
  1894. 'nid' => '1',
  1895. 'uid' => '0',
  1896. 'subject' => 'The second comment.',
  1897. 'comment' => 'The second comment body.',
  1898. 'hostname' => '203.0.113.3',
  1899. 'timestamp' => '1390264948',
  1900. 'status' => '1',
  1901. 'format' => '1',
  1902. 'thread' => '02/',
  1903. 'name' => '3rd comment author name',
  1904. 'mail' => 'comment3@example.com',
  1905. 'homepage' => 'https://www.drupal.org',
  1906. ))
  1907. ->values(array(
  1908. 'cid' => '4',
  1909. 'pid' => '0',
  1910. 'nid' => '19',
  1911. 'uid' => '1',
  1912. 'subject' => 'Subject 1',
  1913. 'comment' => 'Comment 1',
  1914. 'hostname' => '127.0.0.1',
  1915. 'timestamp' => '1501955780',
  1916. 'status' => '0',
  1917. 'format' => '1',
  1918. 'thread' => '01/',
  1919. 'name' => 'root',
  1920. 'mail' => '',
  1921. 'homepage' => '',
  1922. ))
  1923. ->values(array(
  1924. 'cid' => '5',
  1925. 'pid' => '4',
  1926. 'nid' => '19',
  1927. 'uid' => '1',
  1928. 'subject' => 'Subject 2',
  1929. 'comment' => 'Comment 2',
  1930. 'hostname' => '127.0.0.1',
  1931. 'timestamp' => '1501955792',
  1932. 'status' => '0',
  1933. 'format' => '1',
  1934. 'thread' => '01.00/',
  1935. 'name' => 'root',
  1936. 'mail' => '',
  1937. 'homepage' => '',
  1938. ))
  1939. ->values(array(
  1940. 'cid' => '6',
  1941. 'pid' => '5',
  1942. 'nid' => '19',
  1943. 'uid' => '1',
  1944. 'subject' => 'Subject 3',
  1945. 'comment' => 'Comment 3',
  1946. 'hostname' => '127.0.0.1',
  1947. 'timestamp' => '1501955803',
  1948. 'status' => '0',
  1949. 'format' => '1',
  1950. 'thread' => '01.00.00/',
  1951. 'name' => 'root',
  1952. 'mail' => '',
  1953. 'homepage' => '',
  1954. ))
  1955. ->values(array(
  1956. 'cid' => '7',
  1957. 'pid' => '0',
  1958. 'nid' => '21',
  1959. 'uid' => '1',
  1960. 'subject' => 'Comment to John Smith - EN',
  1961. 'comment' => 'This is an English comment.',
  1962. 'hostname' => '2001:14ba:13f8:300:d9d0:363c:9fe4:66e1',
  1963. 'timestamp' => '1534014729',
  1964. 'status' => '0',
  1965. 'format' => '1',
  1966. 'thread' => '01/',
  1967. 'name' => 'root',
  1968. 'mail' => '',
  1969. 'homepage' => '',
  1970. ))
  1971. ->values(array(
  1972. 'cid' => '8',
  1973. 'pid' => '0',
  1974. 'nid' => '22',
  1975. 'uid' => '1',
  1976. 'subject' => 'Comment to John Smith - FR',
  1977. 'comment' => 'This is a French comment.',
  1978. 'hostname' => '2001:14ba:13f8:300:d9d0:363c:9fe4:66e1',
  1979. 'timestamp' => '1534014763',
  1980. 'status' => '0',
  1981. 'format' => '1',
  1982. 'thread' => '01/',
  1983. 'name' => 'root',
  1984. 'mail' => '',
  1985. 'homepage' => '',
  1986. ))
  1987. ->execute();
  1988. $connection->schema()->createTable('config', array(
  1989. 'fields' => array(
  1990. 'collection' => array(
  1991. 'type' => 'varchar',
  1992. 'not null' => TRUE,
  1993. 'length' => '255',
  1994. 'default' => '',
  1995. ),
  1996. 'name' => array(
  1997. 'type' => 'varchar',
  1998. 'not null' => TRUE,
  1999. 'length' => '255',
  2000. 'default' => '',
  2001. ),
  2002. 'data' => array(
  2003. 'type' => 'blob',
  2004. 'not null' => FALSE,
  2005. 'size' => 'normal',
  2006. ),
  2007. ),
  2008. 'primary key' => array(
  2009. 'collection',
  2010. 'name',
  2011. ),
  2012. 'mysql_character_set' => 'utf8',
  2013. ));
  2014. $connection->insert('config')
  2015. ->fields(array(
  2016. 'collection',
  2017. 'name',
  2018. 'data',
  2019. ))
  2020. ->values(array(
  2021. 'collection' => '',
  2022. 'name' => 'system.file',
  2023. 'data' => 'a:1:{s:4:"path";a:1:{s:9:"temporary";s:4:"/tmp";}}',
  2024. ))
  2025. ->execute();
  2026. $connection->schema()->createTable('contact', array(
  2027. 'fields' => array(
  2028. 'cid' => array(
  2029. 'type' => 'serial',
  2030. 'not null' => TRUE,
  2031. 'size' => 'normal',
  2032. 'unsigned' => TRUE,
  2033. ),
  2034. 'category' => array(
  2035. 'type' => 'varchar',
  2036. 'not null' => TRUE,
  2037. 'length' => '255',
  2038. 'default' => '',
  2039. ),
  2040. 'recipients' => array(
  2041. 'type' => 'text',
  2042. 'not null' => TRUE,
  2043. 'size' => 'normal',
  2044. ),
  2045. 'reply' => array(
  2046. 'type' => 'text',
  2047. 'not null' => TRUE,
  2048. 'size' => 'normal',
  2049. ),
  2050. 'weight' => array(
  2051. 'type' => 'int',
  2052. 'not null' => TRUE,
  2053. 'size' => 'normal',
  2054. 'default' => '0',
  2055. ),
  2056. 'selected' => array(
  2057. 'type' => 'int',
  2058. 'not null' => TRUE,
  2059. 'size' => 'normal',
  2060. 'default' => '0',
  2061. ),
  2062. ),
  2063. 'primary key' => array(
  2064. 'cid',
  2065. ),
  2066. 'mysql_character_set' => 'utf8',
  2067. ));
  2068. $connection->insert('contact')
  2069. ->fields(array(
  2070. 'cid',
  2071. 'category',
  2072. 'recipients',
  2073. 'reply',
  2074. 'weight',
  2075. 'selected',
  2076. ))
  2077. ->values(array(
  2078. 'cid' => '1',
  2079. 'category' => 'Website feedback',
  2080. 'recipients' => 'admin@example.com',
  2081. 'reply' => '',
  2082. 'weight' => '0',
  2083. 'selected' => '0',
  2084. ))
  2085. ->values(array(
  2086. 'cid' => '2',
  2087. 'category' => 'Some other category',
  2088. 'recipients' => 'test@example.com',
  2089. 'reply' => 'Thanks for contacting us, we will reply ASAP!',
  2090. 'weight' => '1',
  2091. 'selected' => '1',
  2092. ))
  2093. ->values(array(
  2094. 'cid' => '3',
  2095. 'category' => 'A category much longer than thirty two characters',
  2096. 'recipients' => 'fortyninechars@example.com',
  2097. 'reply' => '',
  2098. 'weight' => '2',
  2099. 'selected' => '0',
  2100. ))
  2101. ->execute();
  2102. $connection->schema()->createTable('content_field_company', array(
  2103. 'fields' => array(
  2104. 'vid' => array(
  2105. 'type' => 'int',
  2106. 'not null' => TRUE,
  2107. 'size' => 'normal',
  2108. 'default' => '0',
  2109. 'unsigned' => TRUE,
  2110. ),
  2111. 'nid' => array(
  2112. 'type' => 'int',
  2113. 'not null' => TRUE,
  2114. 'size' => 'normal',
  2115. 'default' => '0',
  2116. 'unsigned' => TRUE,
  2117. ),
  2118. 'delta' => array(
  2119. 'type' => 'int',
  2120. 'not null' => TRUE,
  2121. 'size' => 'normal',
  2122. 'default' => '0',
  2123. 'unsigned' => TRUE,
  2124. ),
  2125. 'field_company_nid' => array(
  2126. 'type' => 'int',
  2127. 'not null' => FALSE,
  2128. 'size' => 'normal',
  2129. 'unsigned' => TRUE,
  2130. ),
  2131. ),
  2132. 'primary key' => array(
  2133. 'vid',
  2134. 'delta',
  2135. ),
  2136. 'indexes' => array(
  2137. 'nid' => array(
  2138. 'nid',
  2139. ),
  2140. 'field_company_nid' => array(
  2141. 'field_company_nid',
  2142. ),
  2143. ),
  2144. 'mysql_character_set' => 'utf8',
  2145. ));
  2146. $connection->insert('content_field_company')
  2147. ->fields(array(
  2148. 'vid',
  2149. 'nid',
  2150. 'delta',
  2151. 'field_company_nid',
  2152. ))
  2153. ->values(array(
  2154. 'vid' => '21',
  2155. 'nid' => '18',
  2156. 'delta' => '0',
  2157. 'field_company_nid' => '15',
  2158. ))
  2159. ->values(array(
  2160. 'vid' => '2002',
  2161. 'nid' => '21',
  2162. 'delta' => '0',
  2163. 'field_company_nid' => NULL,
  2164. ))
  2165. ->values(array(
  2166. 'vid' => '2003',
  2167. 'nid' => '22',
  2168. 'delta' => '0',
  2169. 'field_company_nid' => NULL,
  2170. ))
  2171. ->values(array(
  2172. 'vid' => '21',
  2173. 'nid' => '18',
  2174. 'delta' => '1',
  2175. 'field_company_nid' => '16',
  2176. ))
  2177. ->execute();
  2178. $connection->schema()->createTable('content_field_image', array(
  2179. 'fields' => array(
  2180. 'vid' => array(
  2181. 'type' => 'int',
  2182. 'not null' => TRUE,
  2183. 'size' => 'normal',
  2184. 'default' => '0',
  2185. 'unsigned' => TRUE,
  2186. ),
  2187. 'nid' => array(
  2188. 'type' => 'int',
  2189. 'not null' => TRUE,
  2190. 'size' => 'normal',
  2191. 'default' => '0',
  2192. 'unsigned' => TRUE,
  2193. ),
  2194. 'field_image_fid' => array(
  2195. 'type' => 'int',
  2196. 'not null' => FALSE,
  2197. 'size' => 'normal',
  2198. ),
  2199. 'field_image_list' => array(
  2200. 'type' => 'int',
  2201. 'not null' => FALSE,
  2202. 'size' => 'normal',
  2203. ),
  2204. 'field_image_data' => array(
  2205. 'type' => 'text',
  2206. 'not null' => FALSE,
  2207. 'size' => 'normal',
  2208. ),
  2209. ),
  2210. 'primary key' => array(
  2211. 'vid',
  2212. ),
  2213. 'mysql_character_set' => 'utf8',
  2214. ));
  2215. $connection->insert('content_field_image')
  2216. ->fields(array(
  2217. 'vid',
  2218. 'nid',
  2219. 'field_image_fid',
  2220. 'field_image_list',
  2221. 'field_image_data',
  2222. ))
  2223. ->values(array(
  2224. 'vid' => '1',
  2225. 'nid' => '1',
  2226. 'field_image_fid' => '2',
  2227. 'field_image_list' => '1',
  2228. 'field_image_data' => 'a:2:{s:3:"alt";s:0:"";s:5:"title";s:0:"";}',
  2229. ))
  2230. ->values(array(
  2231. 'vid' => '2',
  2232. 'nid' => '2',
  2233. 'field_image_fid' => NULL,
  2234. 'field_image_list' => NULL,
  2235. 'field_image_data' => NULL,
  2236. ))
  2237. ->values(array(
  2238. 'vid' => '3',
  2239. 'nid' => '1',
  2240. 'field_image_fid' => '2',
  2241. 'field_image_list' => '1',
  2242. 'field_image_data' => 'a:2:{s:3:"alt";s:0:"";s:5:"title";s:0:"";}',
  2243. ))
  2244. ->execute();
  2245. $connection->schema()->createTable('content_field_multivalue', array(
  2246. 'fields' => array(
  2247. 'vid' => array(
  2248. 'type' => 'int',
  2249. 'not null' => TRUE,
  2250. 'size' => 'normal',
  2251. 'default' => '0',
  2252. 'unsigned' => TRUE,
  2253. ),
  2254. 'nid' => array(
  2255. 'type' => 'int',
  2256. 'not null' => TRUE,
  2257. 'size' => 'normal',
  2258. 'default' => '0',
  2259. 'unsigned' => TRUE,
  2260. ),
  2261. 'field_multivalue_value' => array(
  2262. 'type' => 'numeric',
  2263. 'not null' => FALSE,
  2264. 'precision' => '10',
  2265. 'scale' => '2',
  2266. ),
  2267. 'delta' => array(
  2268. 'type' => 'int',
  2269. 'not null' => TRUE,
  2270. 'size' => 'normal',
  2271. 'default' => '0',
  2272. 'unsigned' => TRUE,
  2273. ),
  2274. ),
  2275. 'primary key' => array(
  2276. 'vid',
  2277. 'delta',
  2278. ),
  2279. 'indexes' => array(
  2280. 'nid' => array(
  2281. 'nid',
  2282. ),
  2283. ),
  2284. 'mysql_character_set' => 'utf8',
  2285. ));
  2286. $connection->insert('content_field_multivalue')
  2287. ->fields(array(
  2288. 'vid',
  2289. 'nid',
  2290. 'field_multivalue_value',
  2291. 'delta',
  2292. ))
  2293. ->values(array(
  2294. 'vid' => '4',
  2295. 'nid' => '3',
  2296. 'field_multivalue_value' => '33.00',
  2297. 'delta' => '0',
  2298. ))
  2299. ->values(array(
  2300. 'vid' => '4',
  2301. 'nid' => '3',
  2302. 'field_multivalue_value' => '44.00',
  2303. 'delta' => '1',
  2304. ))
  2305. ->execute();
  2306. $connection->schema()->createTable('content_field_test', array(
  2307. 'fields' => array(
  2308. 'vid' => array(
  2309. 'type' => 'int',
  2310. 'not null' => TRUE,
  2311. 'size' => 'normal',
  2312. 'default' => '0',
  2313. 'unsigned' => TRUE,
  2314. ),
  2315. 'nid' => array(
  2316. 'type' => 'int',
  2317. 'not null' => TRUE,
  2318. 'size' => 'normal',
  2319. 'default' => '0',
  2320. 'unsigned' => TRUE,
  2321. ),
  2322. 'field_test_value' => array(
  2323. 'type' => 'text',
  2324. 'not null' => FALSE,
  2325. 'size' => 'normal',
  2326. ),
  2327. 'field_test_format' => array(
  2328. 'type' => 'int',
  2329. 'not null' => FALSE,
  2330. 'size' => 'normal',
  2331. 'unsigned' => TRUE,
  2332. ),
  2333. ),
  2334. 'primary key' => array(
  2335. 'vid',
  2336. ),
  2337. 'indexes' => array(
  2338. 'nid' => array(
  2339. 'nid',
  2340. ),
  2341. ),
  2342. 'mysql_character_set' => 'utf8',
  2343. ));
  2344. $connection->insert('content_field_test')
  2345. ->fields(array(
  2346. 'vid',
  2347. 'nid',
  2348. 'field_test_value',
  2349. 'field_test_format',
  2350. ))
  2351. ->values(array(
  2352. 'vid' => '1',
  2353. 'nid' => '1',
  2354. 'field_test_value' => 'This is a shared text field',
  2355. 'field_test_format' => '1',
  2356. ))
  2357. ->values(array(
  2358. 'vid' => '2',
  2359. 'nid' => '1',
  2360. 'field_test_value' => 'This is a shared text field',
  2361. 'field_test_format' => '1',
  2362. ))
  2363. ->values(array(
  2364. 'vid' => '3',
  2365. 'nid' => '2',
  2366. 'field_test_value' => NULL,
  2367. 'field_test_format' => NULL,
  2368. ))
  2369. ->values(array(
  2370. 'vid' => '5',
  2371. 'nid' => '2',
  2372. 'field_test_value' => NULL,
  2373. 'field_test_format' => NULL,
  2374. ))
  2375. ->values(array(
  2376. 'vid' => '12',
  2377. 'nid' => '9',
  2378. 'field_test_value' => 'text for default value',
  2379. 'field_test_format' => '1',
  2380. ))
  2381. ->execute();
  2382. $connection->schema()->createTable('content_field_test_text_single_checkbox', array(
  2383. 'fields' => array(
  2384. 'vid…

Large files files are truncated, but you can click here to view the full file