PageRenderTime 63ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 3ms

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

http://github.com/drupal/drupal
PHP | 19189 lines | 19056 code | 126 blank | 7 comment | 8 complexity | 5bf35c166f0ec228aa73b1e2cc1409f0 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('accesslog', array(
  12. 'fields' => array(
  13. 'aid' => array(
  14. 'type' => 'serial',
  15. 'not null' => TRUE,
  16. 'size' => 'normal',
  17. ),
  18. 'sid' => array(
  19. 'type' => 'varchar',
  20. 'not null' => TRUE,
  21. 'length' => '128',
  22. 'default' => '',
  23. ),
  24. 'title' => array(
  25. 'type' => 'varchar',
  26. 'not null' => FALSE,
  27. 'length' => '255',
  28. ),
  29. 'path' => array(
  30. 'type' => 'varchar',
  31. 'not null' => FALSE,
  32. 'length' => '255',
  33. ),
  34. 'url' => array(
  35. 'type' => 'text',
  36. 'not null' => FALSE,
  37. 'size' => 'normal',
  38. ),
  39. 'hostname' => array(
  40. 'type' => 'varchar',
  41. 'not null' => FALSE,
  42. 'length' => '128',
  43. ),
  44. 'uid' => array(
  45. 'type' => 'int',
  46. 'not null' => FALSE,
  47. 'size' => 'normal',
  48. 'default' => '0',
  49. 'unsigned' => TRUE,
  50. ),
  51. 'timer' => array(
  52. 'type' => 'int',
  53. 'not null' => TRUE,
  54. 'size' => 'normal',
  55. 'default' => '0',
  56. 'unsigned' => TRUE,
  57. ),
  58. 'timestamp' => array(
  59. 'type' => 'int',
  60. 'not null' => TRUE,
  61. 'size' => 'normal',
  62. 'default' => '0',
  63. 'unsigned' => TRUE,
  64. ),
  65. ),
  66. 'primary key' => array(
  67. 'aid',
  68. ),
  69. 'mysql_character_set' => 'utf8',
  70. ));
  71. $connection->insert('accesslog')
  72. ->fields(array(
  73. 'aid',
  74. 'sid',
  75. 'title',
  76. 'path',
  77. 'url',
  78. 'hostname',
  79. 'uid',
  80. 'timer',
  81. 'timestamp',
  82. ))
  83. ->values(array(
  84. 'aid' => '92',
  85. 'sid' => 'a8ksMY2GH4yXK0-PsLNAlCv4zNnapnyCpx4lryZDEfk',
  86. 'title' => '',
  87. 'path' => 'node',
  88. 'url' => 'http://drupal7.local/?q=user/register',
  89. 'hostname' => '127.0.0.1',
  90. 'uid' => '0',
  91. 'timer' => '655',
  92. 'timestamp' => '1444944970',
  93. ))
  94. ->values(array(
  95. 'aid' => '93',
  96. 'sid' => 'e89G2redQpxRTIndbV3qH8snVR621DqSQ2s4vciJedA',
  97. 'title' => '',
  98. 'path' => 'node',
  99. 'url' => 'http://drupal7.local/',
  100. 'hostname' => '127.0.0.1',
  101. 'uid' => '0',
  102. 'timer' => '214',
  103. 'timestamp' => '1444944974',
  104. ))
  105. ->values(array(
  106. 'aid' => '94',
  107. 'sid' => 'KkVxQTCiKqKEGNcRs7GYrmXXbEk4szXCHVTknFkbiG0',
  108. 'title' => 'User account',
  109. 'path' => 'user/login',
  110. 'url' => '',
  111. 'hostname' => '127.0.0.1',
  112. 'uid' => '0',
  113. 'timer' => '259',
  114. 'timestamp' => '1444945094',
  115. ))
  116. ->values(array(
  117. 'aid' => '95',
  118. 'sid' => 'FA1BMWZvsAAE1G-OBMzfiJyA12sh588cOKSmEmxFQiA',
  119. 'title' => 'My account',
  120. 'path' => 'user/login',
  121. 'url' => 'http://drupal7.local/?q=user/login',
  122. 'hostname' => '127.0.0.1',
  123. 'uid' => '1',
  124. 'timer' => '217',
  125. 'timestamp' => '1444945097',
  126. ))
  127. ->values(array(
  128. 'aid' => '96',
  129. 'sid' => 'FA1BMWZvsAAE1G-OBMzfiJyA12sh588cOKSmEmxFQiA',
  130. 'title' => 'root',
  131. 'path' => 'user/1',
  132. 'url' => 'http://drupal7.local/?q=user/login',
  133. 'hostname' => '127.0.0.1',
  134. 'uid' => '1',
  135. 'timer' => '211',
  136. 'timestamp' => '1444945097',
  137. ))
  138. ->values(array(
  139. 'aid' => '97',
  140. 'sid' => 'FA1BMWZvsAAE1G-OBMzfiJyA12sh588cOKSmEmxFQiA',
  141. 'title' => 'Modules',
  142. 'path' => 'admin/modules',
  143. 'url' => 'http://drupal7.local/user/1',
  144. 'hostname' => '127.0.0.1',
  145. 'uid' => '1',
  146. 'timer' => '619',
  147. 'timestamp' => '1444945104',
  148. ))
  149. ->values(array(
  150. 'aid' => '98',
  151. 'sid' => 'FA1BMWZvsAAE1G-OBMzfiJyA12sh588cOKSmEmxFQiA',
  152. 'title' => 'Configuration',
  153. 'path' => 'admin/config',
  154. 'url' => 'http://drupal7.local/admin/modules',
  155. 'hostname' => '127.0.0.1',
  156. 'uid' => '1',
  157. 'timer' => '273',
  158. 'timestamp' => '1444945114',
  159. ))
  160. ->values(array(
  161. 'aid' => '99',
  162. 'sid' => 'FA1BMWZvsAAE1G-OBMzfiJyA12sh588cOKSmEmxFQiA',
  163. 'title' => 'Languages',
  164. 'path' => 'admin/config/regional/language',
  165. 'url' => 'http://drupal7.local/admin/config',
  166. 'hostname' => '127.0.0.1',
  167. 'uid' => '1',
  168. 'timer' => '213',
  169. 'timestamp' => '1444945121',
  170. ))
  171. ->values(array(
  172. 'aid' => '100',
  173. 'sid' => 'FA1BMWZvsAAE1G-OBMzfiJyA12sh588cOKSmEmxFQiA',
  174. 'title' => 'Languages',
  175. 'path' => 'admin/config/regional/language/add',
  176. 'url' => 'http://drupal7.local/admin/config/regional/language',
  177. 'hostname' => '127.0.0.1',
  178. 'uid' => '1',
  179. 'timer' => '148',
  180. 'timestamp' => '1444945122',
  181. ))
  182. ->values(array(
  183. 'aid' => '101',
  184. 'sid' => 'FA1BMWZvsAAE1G-OBMzfiJyA12sh588cOKSmEmxFQiA',
  185. 'title' => 'Languages',
  186. 'path' => 'admin/config/regional/language/add',
  187. 'url' => 'http://drupal7.local/admin/config/regional/language/add',
  188. 'hostname' => '127.0.0.1',
  189. 'uid' => '1',
  190. 'timer' => '260',
  191. 'timestamp' => '1444945153',
  192. ))
  193. ->values(array(
  194. 'aid' => '102',
  195. 'sid' => 'FA1BMWZvsAAE1G-OBMzfiJyA12sh588cOKSmEmxFQiA',
  196. 'title' => 'Languages',
  197. 'path' => 'admin/config/regional/language/add',
  198. 'url' => '',
  199. 'hostname' => '127.0.0.1',
  200. 'uid' => '1',
  201. 'timer' => '195',
  202. 'timestamp' => '1444945160',
  203. ))
  204. ->values(array(
  205. 'aid' => '103',
  206. 'sid' => 'FA1BMWZvsAAE1G-OBMzfiJyA12sh588cOKSmEmxFQiA',
  207. 'title' => 'Languages',
  208. 'path' => 'admin/config/regional/language/add',
  209. 'url' => 'http://drupal7.local/?q=admin/config/regional/language/add',
  210. 'hostname' => '127.0.0.1',
  211. 'uid' => '1',
  212. 'timer' => '177',
  213. 'timestamp' => '1444945168',
  214. ))
  215. ->values(array(
  216. 'aid' => '104',
  217. 'sid' => 'FA1BMWZvsAAE1G-OBMzfiJyA12sh588cOKSmEmxFQiA',
  218. 'title' => 'Languages',
  219. 'path' => 'admin/config/regional/language',
  220. 'url' => 'http://drupal7.local/?q=admin/config/regional/language/add',
  221. 'hostname' => '127.0.0.1',
  222. 'uid' => '1',
  223. 'timer' => '145',
  224. 'timestamp' => '1444945168',
  225. ))
  226. ->values(array(
  227. 'aid' => '105',
  228. 'sid' => 'FA1BMWZvsAAE1G-OBMzfiJyA12sh588cOKSmEmxFQiA',
  229. 'title' => 'Languages',
  230. 'path' => 'admin/config/regional/language',
  231. 'url' => '',
  232. 'hostname' => '127.0.0.1',
  233. 'uid' => '1',
  234. 'timer' => '159',
  235. 'timestamp' => '1444945175',
  236. ))
  237. ->values(array(
  238. 'aid' => '106',
  239. 'sid' => 'FA1BMWZvsAAE1G-OBMzfiJyA12sh588cOKSmEmxFQiA',
  240. 'title' => 'Languages',
  241. 'path' => 'admin/config/regional/language',
  242. 'url' => 'http://drupal7.local/?q=admin/config/regional/language',
  243. 'hostname' => '127.0.0.1',
  244. 'uid' => '1',
  245. 'timer' => '152',
  246. 'timestamp' => '1444945176',
  247. ))
  248. ->values(array(
  249. 'aid' => '107',
  250. 'sid' => 'FA1BMWZvsAAE1G-OBMzfiJyA12sh588cOKSmEmxFQiA',
  251. 'title' => 'Languages',
  252. 'path' => 'admin/config/regional/language',
  253. 'url' => 'http://drupal7.local/?q=admin/config/regional/language',
  254. 'hostname' => '127.0.0.1',
  255. 'uid' => '1',
  256. 'timer' => '148',
  257. 'timestamp' => '1444945176',
  258. ))
  259. ->values(array(
  260. 'aid' => '108',
  261. 'sid' => 'FA1BMWZvsAAE1G-OBMzfiJyA12sh588cOKSmEmxFQiA',
  262. 'title' => 'Structure',
  263. 'path' => 'admin/structure',
  264. 'url' => 'http://drupal7.local/admin/config/regional/language',
  265. 'hostname' => '127.0.0.1',
  266. 'uid' => '1',
  267. 'timer' => '156',
  268. 'timestamp' => '1444945206',
  269. ))
  270. ->values(array(
  271. 'aid' => '109',
  272. 'sid' => 'FA1BMWZvsAAE1G-OBMzfiJyA12sh588cOKSmEmxFQiA',
  273. 'title' => 'Content types',
  274. 'path' => 'admin/structure/types',
  275. 'url' => 'http://drupal7.local/admin/structure',
  276. 'hostname' => '127.0.0.1',
  277. 'uid' => '1',
  278. 'timer' => '154',
  279. 'timestamp' => '1444945208',
  280. ))
  281. ->values(array(
  282. 'aid' => '110',
  283. 'sid' => 'FA1BMWZvsAAE1G-OBMzfiJyA12sh588cOKSmEmxFQiA',
  284. 'title' => 'Blog entry',
  285. 'path' => 'admin/structure/types/manage/blog',
  286. 'url' => 'http://drupal7.local/admin/structure/types',
  287. 'hostname' => '127.0.0.1',
  288. 'uid' => '1',
  289. 'timer' => '203',
  290. 'timestamp' => '1444945211',
  291. ))
  292. ->values(array(
  293. 'aid' => '111',
  294. 'sid' => 'FA1BMWZvsAAE1G-OBMzfiJyA12sh588cOKSmEmxFQiA',
  295. 'title' => 'Parent menu items',
  296. 'path' => 'admin/structure/menu/parents',
  297. 'url' => 'http://drupal7.local/admin/structure/types/manage/blog',
  298. 'hostname' => '127.0.0.1',
  299. 'uid' => '1',
  300. 'timer' => '211',
  301. 'timestamp' => '1444945211',
  302. ))
  303. ->values(array(
  304. 'aid' => '112',
  305. 'sid' => 'FA1BMWZvsAAE1G-OBMzfiJyA12sh588cOKSmEmxFQiA',
  306. 'title' => 'Blog entry',
  307. 'path' => 'admin/structure/types/manage/blog',
  308. 'url' => 'http://drupal7.local/admin/structure/types/manage/blog',
  309. 'hostname' => '127.0.0.1',
  310. 'uid' => '1',
  311. 'timer' => '224',
  312. 'timestamp' => '1444945236',
  313. ))
  314. ->values(array(
  315. 'aid' => '113',
  316. 'sid' => 'FA1BMWZvsAAE1G-OBMzfiJyA12sh588cOKSmEmxFQiA',
  317. 'title' => 'Parent menu items',
  318. 'path' => 'admin/structure/menu/parents',
  319. 'url' => 'http://drupal7.local/admin/structure/types/manage/blog',
  320. 'hostname' => '127.0.0.1',
  321. 'uid' => '1',
  322. 'timer' => '165',
  323. 'timestamp' => '1444945237',
  324. ))
  325. ->values(array(
  326. 'aid' => '114',
  327. 'sid' => 'FA1BMWZvsAAE1G-OBMzfiJyA12sh588cOKSmEmxFQiA',
  328. 'title' => 'Blog entry',
  329. 'path' => 'admin/structure/types/manage/blog',
  330. 'url' => '',
  331. 'hostname' => '127.0.0.1',
  332. 'uid' => '1',
  333. 'timer' => '155',
  334. 'timestamp' => '1444945242',
  335. ))
  336. ->values(array(
  337. 'aid' => '115',
  338. 'sid' => 'FA1BMWZvsAAE1G-OBMzfiJyA12sh588cOKSmEmxFQiA',
  339. 'title' => 'Parent menu items',
  340. 'path' => 'admin/structure/menu/parents',
  341. 'url' => 'http://drupal7.local/?q=admin/structure/types/manage/blog',
  342. 'hostname' => '127.0.0.1',
  343. 'uid' => '1',
  344. 'timer' => '217',
  345. 'timestamp' => '1444945242',
  346. ))
  347. ->values(array(
  348. 'aid' => '116',
  349. 'sid' => 'FA1BMWZvsAAE1G-OBMzfiJyA12sh588cOKSmEmxFQiA',
  350. 'title' => 'Blog entry',
  351. 'path' => 'admin/structure/types/manage/blog',
  352. 'url' => 'http://drupal7.local/?q=admin/structure/types/manage/blog',
  353. 'hostname' => '127.0.0.1',
  354. 'uid' => '1',
  355. 'timer' => '667',
  356. 'timestamp' => '1444945246',
  357. ))
  358. ->values(array(
  359. 'aid' => '117',
  360. 'sid' => 'FA1BMWZvsAAE1G-OBMzfiJyA12sh588cOKSmEmxFQiA',
  361. 'title' => 'Content types',
  362. 'path' => 'admin/structure/types',
  363. 'url' => 'http://drupal7.local/?q=admin/structure/types/manage/blog',
  364. 'hostname' => '127.0.0.1',
  365. 'uid' => '1',
  366. 'timer' => '149',
  367. 'timestamp' => '1444945246',
  368. ))
  369. ->execute();
  370. $connection->schema()->createTable('actions', array(
  371. 'fields' => array(
  372. 'aid' => array(
  373. 'type' => 'varchar',
  374. 'not null' => TRUE,
  375. 'length' => '255',
  376. 'default' => '0',
  377. ),
  378. 'type' => array(
  379. 'type' => 'varchar',
  380. 'not null' => TRUE,
  381. 'length' => '32',
  382. 'default' => '',
  383. ),
  384. 'callback' => array(
  385. 'type' => 'varchar',
  386. 'not null' => TRUE,
  387. 'length' => '255',
  388. 'default' => '',
  389. ),
  390. 'parameters' => array(
  391. 'type' => 'blob',
  392. 'not null' => TRUE,
  393. 'size' => 'normal',
  394. ),
  395. 'label' => array(
  396. 'type' => 'varchar',
  397. 'not null' => TRUE,
  398. 'length' => '255',
  399. 'default' => '0',
  400. ),
  401. ),
  402. 'primary key' => array(
  403. 'aid',
  404. ),
  405. 'mysql_character_set' => 'utf8',
  406. ));
  407. $connection->insert('actions')
  408. ->fields(array(
  409. 'aid',
  410. 'type',
  411. 'callback',
  412. 'parameters',
  413. 'label',
  414. ))
  415. ->values(array(
  416. 'aid' => '2',
  417. 'type' => 'comment',
  418. 'callback' => 'comment_unpublish_by_keyword_action',
  419. 'parameters' => 'a:1:{s:8:"keywords";a:1:{i:0;s:6:"drupal";}}',
  420. 'label' => 'Unpublish comment containing keyword(s)',
  421. ))
  422. ->values(array(
  423. 'aid' => '3',
  424. 'type' => 'node',
  425. 'callback' => 'node_assign_owner_action',
  426. 'parameters' => 'a:1:{s:9:"owner_uid";s:1:"2";}',
  427. 'label' => 'Change the author of content',
  428. ))
  429. ->values(array(
  430. 'aid' => '4',
  431. 'type' => 'node',
  432. 'callback' => 'node_unpublish_by_keyword_action',
  433. 'parameters' => 'a:1:{s:8:"keywords";a:1:{i:0;s:6:"drupal";}}',
  434. 'label' => 'Unpublish content containing keyword(s)',
  435. ))
  436. ->values(array(
  437. 'aid' => '5',
  438. 'type' => 'system',
  439. 'callback' => 'system_message_action',
  440. 'parameters' => 'a:1:{s:7:"message";s:21:"Drupal migration test";}',
  441. 'label' => 'Display a message to the user',
  442. ))
  443. ->values(array(
  444. 'aid' => '6',
  445. 'type' => 'system',
  446. 'callback' => 'system_send_email_action',
  447. '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";}',
  448. 'label' => 'Send e-mail',
  449. ))
  450. ->values(array(
  451. 'aid' => '7',
  452. 'type' => 'system',
  453. 'callback' => 'system_goto_action',
  454. 'parameters' => 'a:1:{s:3:"url";s:22:"https://www.drupal.org";}',
  455. 'label' => 'Redirect to URL',
  456. ))
  457. ->values(array(
  458. 'aid' => 'comment_publish_action',
  459. 'type' => 'comment',
  460. 'callback' => 'comment_publish_action',
  461. 'parameters' => '',
  462. 'label' => 'Publish comment',
  463. ))
  464. ->values(array(
  465. 'aid' => 'comment_save_action',
  466. 'type' => 'comment',
  467. 'callback' => 'comment_save_action',
  468. 'parameters' => '',
  469. 'label' => 'Save comment',
  470. ))
  471. ->values(array(
  472. 'aid' => 'comment_unpublish_action',
  473. 'type' => 'comment',
  474. 'callback' => 'comment_unpublish_action',
  475. 'parameters' => '',
  476. 'label' => 'Unpublish comment',
  477. ))
  478. ->values(array(
  479. 'aid' => 'node_make_sticky_action',
  480. 'type' => 'node',
  481. 'callback' => 'node_make_sticky_action',
  482. 'parameters' => '',
  483. 'label' => 'Make content sticky',
  484. ))
  485. ->values(array(
  486. 'aid' => 'node_make_unsticky_action',
  487. 'type' => 'node',
  488. 'callback' => 'node_make_unsticky_action',
  489. 'parameters' => '',
  490. 'label' => 'Make content unsticky',
  491. ))
  492. ->values(array(
  493. 'aid' => 'node_promote_action',
  494. 'type' => 'node',
  495. 'callback' => 'node_promote_action',
  496. 'parameters' => '',
  497. 'label' => 'Promote content to front page',
  498. ))
  499. ->values(array(
  500. 'aid' => 'node_publish_action',
  501. 'type' => 'node',
  502. 'callback' => 'node_publish_action',
  503. 'parameters' => '',
  504. 'label' => 'Publish content',
  505. ))
  506. ->values(array(
  507. 'aid' => 'node_save_action',
  508. 'type' => 'node',
  509. 'callback' => 'node_save_action',
  510. 'parameters' => '',
  511. 'label' => 'Save content',
  512. ))
  513. ->values(array(
  514. 'aid' => 'node_unpromote_action',
  515. 'type' => 'node',
  516. 'callback' => 'node_unpromote_action',
  517. 'parameters' => '',
  518. 'label' => 'Remove content from front page',
  519. ))
  520. ->values(array(
  521. 'aid' => 'node_unpublish_action',
  522. 'type' => 'node',
  523. 'callback' => 'node_unpublish_action',
  524. 'parameters' => '',
  525. 'label' => 'Unpublish content',
  526. ))
  527. ->values(array(
  528. 'aid' => 'system_block_ip_action',
  529. 'type' => 'user',
  530. 'callback' => 'system_block_ip_action',
  531. 'parameters' => '',
  532. 'label' => 'Ban IP address of current user',
  533. ))
  534. ->values(array(
  535. 'aid' => 'user_block_user_action',
  536. 'type' => 'user',
  537. 'callback' => 'user_block_user_action',
  538. 'parameters' => '',
  539. 'label' => 'Block current user',
  540. ))
  541. ->execute();
  542. $connection->schema()->createTable('aggregator_category', array(
  543. 'fields' => array(
  544. 'cid' => array(
  545. 'type' => 'serial',
  546. 'not null' => TRUE,
  547. 'size' => 'normal',
  548. ),
  549. 'title' => array(
  550. 'type' => 'varchar',
  551. 'not null' => TRUE,
  552. 'length' => '255',
  553. 'default' => '',
  554. ),
  555. 'description' => array(
  556. 'type' => 'text',
  557. 'not null' => TRUE,
  558. 'size' => 'normal',
  559. ),
  560. 'block' => array(
  561. 'type' => 'int',
  562. 'not null' => TRUE,
  563. 'size' => 'normal',
  564. 'default' => '0',
  565. ),
  566. ),
  567. 'primary key' => array(
  568. 'cid',
  569. ),
  570. 'mysql_character_set' => 'utf8',
  571. ));
  572. $connection->schema()->createTable('aggregator_category_feed', array(
  573. 'fields' => array(
  574. 'fid' => array(
  575. 'type' => 'int',
  576. 'not null' => TRUE,
  577. 'size' => 'normal',
  578. 'default' => '0',
  579. ),
  580. 'cid' => array(
  581. 'type' => 'int',
  582. 'not null' => TRUE,
  583. 'size' => 'normal',
  584. 'default' => '0',
  585. ),
  586. ),
  587. 'primary key' => array(
  588. 'fid',
  589. 'cid',
  590. ),
  591. 'mysql_character_set' => 'utf8',
  592. ));
  593. $connection->schema()->createTable('aggregator_category_item', array(
  594. 'fields' => array(
  595. 'iid' => array(
  596. 'type' => 'int',
  597. 'not null' => TRUE,
  598. 'size' => 'normal',
  599. 'default' => '0',
  600. ),
  601. 'cid' => array(
  602. 'type' => 'int',
  603. 'not null' => TRUE,
  604. 'size' => 'normal',
  605. 'default' => '0',
  606. ),
  607. ),
  608. 'primary key' => array(
  609. 'iid',
  610. 'cid',
  611. ),
  612. 'mysql_character_set' => 'utf8',
  613. ));
  614. $connection->schema()->createTable('aggregator_feed', array(
  615. 'fields' => array(
  616. 'fid' => array(
  617. 'type' => 'serial',
  618. 'not null' => TRUE,
  619. 'size' => 'normal',
  620. ),
  621. 'title' => array(
  622. 'type' => 'varchar',
  623. 'not null' => TRUE,
  624. 'length' => '255',
  625. 'default' => '',
  626. ),
  627. 'url' => array(
  628. 'type' => 'text',
  629. 'not null' => TRUE,
  630. 'size' => 'normal',
  631. ),
  632. 'refresh' => array(
  633. 'type' => 'int',
  634. 'not null' => TRUE,
  635. 'size' => 'normal',
  636. 'default' => '0',
  637. ),
  638. 'checked' => array(
  639. 'type' => 'int',
  640. 'not null' => TRUE,
  641. 'size' => 'normal',
  642. 'default' => '0',
  643. ),
  644. 'queued' => array(
  645. 'type' => 'int',
  646. 'not null' => TRUE,
  647. 'size' => 'normal',
  648. 'default' => '0',
  649. ),
  650. 'link' => array(
  651. 'type' => 'text',
  652. 'not null' => TRUE,
  653. 'size' => 'normal',
  654. ),
  655. 'description' => array(
  656. 'type' => 'text',
  657. 'not null' => TRUE,
  658. 'size' => 'normal',
  659. ),
  660. 'image' => array(
  661. 'type' => 'text',
  662. 'not null' => TRUE,
  663. 'size' => 'normal',
  664. ),
  665. 'hash' => array(
  666. 'type' => 'varchar',
  667. 'not null' => TRUE,
  668. 'length' => '64',
  669. 'default' => '',
  670. ),
  671. 'etag' => array(
  672. 'type' => 'varchar',
  673. 'not null' => TRUE,
  674. 'length' => '255',
  675. 'default' => '',
  676. ),
  677. 'modified' => array(
  678. 'type' => 'int',
  679. 'not null' => TRUE,
  680. 'size' => 'normal',
  681. 'default' => '0',
  682. ),
  683. 'block' => array(
  684. 'type' => 'int',
  685. 'not null' => TRUE,
  686. 'size' => 'normal',
  687. 'default' => '0',
  688. ),
  689. ),
  690. 'primary key' => array(
  691. 'fid',
  692. ),
  693. 'mysql_character_set' => 'utf8',
  694. ));
  695. $connection->insert('aggregator_feed')
  696. ->fields(array(
  697. 'fid',
  698. 'title',
  699. 'url',
  700. 'refresh',
  701. 'checked',
  702. 'queued',
  703. 'link',
  704. 'description',
  705. 'image',
  706. 'hash',
  707. 'etag',
  708. 'modified',
  709. 'block',
  710. ))
  711. ->values(array(
  712. 'fid' => '1',
  713. 'title' => 'Know Your Meme',
  714. 'url' => 'http://knowyourmeme.com/newsfeed.rss',
  715. 'refresh' => '900',
  716. 'checked' => '1444944970',
  717. 'queued' => '0',
  718. 'link' => 'http://knowyourmeme.com',
  719. 'description' => 'New items added to the News Feed',
  720. 'image' => '',
  721. 'hash' => 'e6295b3ba81b24db62b41515494a7e9fb87979ff45045a1c946de5fa5abc9c52',
  722. 'etag' => '"bad5e20e4993f31c869cffd22f1645b9"',
  723. 'modified' => '0',
  724. 'block' => '5',
  725. ))
  726. ->execute();
  727. $connection->schema()->createTable('aggregator_item', array(
  728. 'fields' => array(
  729. 'iid' => array(
  730. 'type' => 'serial',
  731. 'not null' => TRUE,
  732. 'size' => 'normal',
  733. ),
  734. 'fid' => array(
  735. 'type' => 'int',
  736. 'not null' => TRUE,
  737. 'size' => 'normal',
  738. 'default' => '0',
  739. ),
  740. 'title' => array(
  741. 'type' => 'varchar',
  742. 'not null' => TRUE,
  743. 'length' => '255',
  744. 'default' => '',
  745. ),
  746. 'link' => array(
  747. 'type' => 'text',
  748. 'not null' => TRUE,
  749. 'size' => 'normal',
  750. ),
  751. 'author' => array(
  752. 'type' => 'varchar',
  753. 'not null' => TRUE,
  754. 'length' => '255',
  755. 'default' => '',
  756. ),
  757. 'description' => array(
  758. 'type' => 'text',
  759. 'not null' => TRUE,
  760. 'size' => 'normal',
  761. ),
  762. 'timestamp' => array(
  763. 'type' => 'int',
  764. 'not null' => FALSE,
  765. 'size' => 'normal',
  766. ),
  767. 'guid' => array(
  768. 'type' => 'text',
  769. 'not null' => TRUE,
  770. 'size' => 'normal',
  771. ),
  772. ),
  773. 'primary key' => array(
  774. 'iid',
  775. ),
  776. 'mysql_character_set' => 'utf8',
  777. ));
  778. $connection->insert('aggregator_item')
  779. ->fields(array(
  780. 'iid',
  781. 'fid',
  782. 'title',
  783. 'link',
  784. 'author',
  785. 'description',
  786. 'timestamp',
  787. 'guid',
  788. ))
  789. ->values(array(
  790. 'iid' => '2',
  791. 'fid' => '1',
  792. 'title' => 'Fido, Take the Wheel',
  793. 'link' => 'http://knowyourmeme.com/videos/127817-dogs',
  794. 'author' => '',
  795. 'description' => '<img alt="D70olsu" src="http://i.imgur.com/D70Olsu.jpg?fb" /><p>When little Timmy had too much to drink, the family dog was forced into the role of designated driver.</p>',
  796. 'timestamp' => '1444860534',
  797. 'guid' => 'post:18816',
  798. ))
  799. ->values(array(
  800. 'iid' => '3',
  801. 'fid' => '1',
  802. 'title' => 'One Punch Man Anime Premieres in Japan',
  803. 'link' => 'http://knowyourmeme.com/memes/subcultures/one-punch-man',
  804. 'author' => '',
  805. 'description' => '<img alt="49b" src="http://i2.kym-cdn.com/news_feeds/icons/mobile/000/018/819/49b.jpg" /><p>The first two episodes of the much anticipated anime adaptation of <i>One Punch Man</i> were finally aired in Japan this month.</p>',
  806. 'timestamp' => '1444863415',
  807. 'guid' => 'post:18819',
  808. ))
  809. ->values(array(
  810. 'iid' => '4',
  811. 'fid' => '1',
  812. 'title' => '’Tis the Season to Be Forever Alone',
  813. 'link' => 'http://knowyourmeme.com/photos/1029494-forever-alone',
  814. 'author' => '',
  815. 'description' => '<img alt="336" src="http://i2.kym-cdn.com/photos/images/newsfeed/001/029/494/336.jpg" />',
  816. 'timestamp' => '1444864413',
  817. 'guid' => 'post:18821',
  818. ))
  819. ->values(array(
  820. 'iid' => '5',
  821. 'fid' => '1',
  822. 'title' => 'Legend of Zelda: Symphony of The Goddesses',
  823. 'link' => 'http://knowyourmeme.com/videos/128124-the-legend-of-zelda',
  824. 'author' => '',
  825. 'description' => '<img alt="1a9" src="http://i3.kym-cdn.com/news_feeds/icons/mobile/000/018/824/1a9.jpg" /><p>Rejoice, nerds! This is the music that awaits you in heaven. Check out The Legend of Zelda: Symphony of the Goddesses’ performance on the Late Show with Stephen Colbert.</p>',
  826. 'timestamp' => '1444934645',
  827. 'guid' => 'post:18824',
  828. ))
  829. ->values(array(
  830. 'iid' => '6',
  831. 'fid' => '1',
  832. 'title' => '“Your Mom” Jokes',
  833. 'link' => 'http://knowyourmeme.com/memes/your-mom-jokes',
  834. 'author' => '',
  835. 'description' => '<img alt="3bc" src="http://i3.kym-cdn.com/news_feeds/icons/mobile/000/018/823/3bc.jpg" /><p>The earliest recorded example of a maternal insult joke comes from an ancient Babylonian tablet dated back to 1,500 <span class="caps">BCE</span>, which contains an incomplete riddle about a promiscuous mother.</p>',
  836. 'timestamp' => '1444928716',
  837. 'guid' => 'post:18823',
  838. ))
  839. ->values(array(
  840. 'iid' => '7',
  841. 'fid' => '1',
  842. 'title' => 'DBZ Voice Actors Dub Over Classic Movies',
  843. 'link' => 'http://knowyourmeme.com/videos/128169-dragon-ball',
  844. 'author' => '',
  845. 'description' => '<img alt="D8c" src="http://i1.kym-cdn.com/news_feeds/icons/mobile/000/018/826/d8c.jpg" /><p>Some of the most recognizable voices behind the characters of Dragon Ball Z gather at The Nerdist studio for a parody dub of famous film scenes from <em>Ace Ventura</em> and <em>Independence Day</em> to <em>Zoolander</em> and <em>Meet the Parents</em>.</p>',
  846. 'timestamp' => '1444939569',
  847. 'guid' => 'post:18826',
  848. ))
  849. ->values(array(
  850. 'iid' => '8',
  851. 'fid' => '1',
  852. 'title' => 'Happy Birthday, Cure-chan!',
  853. 'link' => 'http://knowyourmeme.com/memes/cure-chan',
  854. 'author' => '',
  855. 'description' => '<img alt="E8c" src="http://i3.kym-cdn.com/news_feeds/icons/mobile/000/018/825/e8c.jpg" /><p>The archnemesis of <a href="/memes/ebola-chan">Ebola-chan</a> was born one year ago this week.</p>',
  856. 'timestamp' => '1444938083',
  857. 'guid' => 'post:18825',
  858. ))
  859. ->values(array(
  860. 'iid' => '9',
  861. 'fid' => '1',
  862. 'title' => 'That Face When Retweets Ain’t Coming In',
  863. 'link' => 'http://knowyourmeme.com/photos/1029430-my-face-when',
  864. 'author' => '',
  865. 'description' => '<img alt="C51" src="http://i2.kym-cdn.com/news_feeds/icons/original/000/018/827/c51.jpg" />',
  866. 'timestamp' => '1444940736',
  867. 'guid' => 'post:18827',
  868. ))
  869. ->values(array(
  870. 'iid' => '10',
  871. 'fid' => '1',
  872. 'title' => 'Back to the Future Stars Talk Film’s Predictions',
  873. 'link' => 'http://knowyourmeme.com/videos/128173-back-to-the-future-day',
  874. 'author' => '',
  875. 'description' => '<img alt="944" src="http://i2.kym-cdn.com/news_feeds/icons/mobile/000/018/828/944.jpg" /><p>In honor of next week being the real <a href="/memes/back-to-the-future-day">Back to the Future Day</a>, Christopher Lloyd and Michael J. Fox recently got together (at the prompting of Toyota) to discuss which of the film’s predictions have come to pass in 2015.</p>',
  876. 'timestamp' => '1444943309',
  877. 'guid' => 'post:18828',
  878. ))
  879. ->values(array(
  880. 'iid' => '11',
  881. 'fid' => '1',
  882. 'title' => 'Chad Says Beta Things',
  883. 'link' => 'http://knowyourmeme.com/memes/chad-says-beta-things',
  884. 'author' => '',
  885. 'description' => '<img alt="937" src="http://i1.kym-cdn.com/news_feeds/icons/mobile/000/018/829/937.jpg" /><p>This series of awkward Tinder messages sent by a fake <a href="http://knowyourmeme.com/memes/chad-thundercock">Chad</a> Tinder profile has caused a recent surge in popularity of the corn emoji.</p>',
  886. 'timestamp' => '1444944831',
  887. 'guid' => 'post:18829',
  888. ))
  889. ->execute();
  890. $connection->schema()->createTable('authmap', array(
  891. 'fields' => array(
  892. 'aid' => array(
  893. 'type' => 'serial',
  894. 'not null' => TRUE,
  895. 'size' => 'normal',
  896. 'unsigned' => TRUE,
  897. ),
  898. 'uid' => array(
  899. 'type' => 'int',
  900. 'not null' => TRUE,
  901. 'size' => 'normal',
  902. 'default' => '0',
  903. ),
  904. 'authname' => array(
  905. 'type' => 'varchar',
  906. 'not null' => TRUE,
  907. 'length' => '128',
  908. 'default' => '',
  909. ),
  910. 'module' => array(
  911. 'type' => 'varchar',
  912. 'not null' => TRUE,
  913. 'length' => '128',
  914. 'default' => '',
  915. ),
  916. ),
  917. 'primary key' => array(
  918. 'aid',
  919. ),
  920. 'mysql_character_set' => 'utf8',
  921. ));
  922. $connection->schema()->createTable('batch', array(
  923. 'fields' => array(
  924. 'bid' => array(
  925. 'type' => 'int',
  926. 'not null' => TRUE,
  927. 'size' => 'normal',
  928. 'unsigned' => TRUE,
  929. ),
  930. 'token' => array(
  931. 'type' => 'varchar',
  932. 'not null' => TRUE,
  933. 'length' => '64',
  934. ),
  935. 'timestamp' => array(
  936. 'type' => 'int',
  937. 'not null' => TRUE,
  938. 'size' => 'normal',
  939. ),
  940. 'batch' => array(
  941. 'type' => 'blob',
  942. 'not null' => FALSE,
  943. 'size' => 'normal',
  944. ),
  945. ),
  946. 'primary key' => array(
  947. 'bid',
  948. ),
  949. 'mysql_character_set' => 'utf8',
  950. ));
  951. $connection->schema()->createTable('block', array(
  952. 'fields' => array(
  953. 'bid' => array(
  954. 'type' => 'serial',
  955. 'not null' => TRUE,
  956. 'size' => 'normal',
  957. ),
  958. 'module' => array(
  959. 'type' => 'varchar',
  960. 'not null' => TRUE,
  961. 'length' => '64',
  962. 'default' => '',
  963. ),
  964. 'delta' => array(
  965. 'type' => 'varchar',
  966. 'not null' => TRUE,
  967. 'length' => '32',
  968. 'default' => '0',
  969. ),
  970. 'theme' => array(
  971. 'type' => 'varchar',
  972. 'not null' => TRUE,
  973. 'length' => '64',
  974. 'default' => '',
  975. ),
  976. 'status' => array(
  977. 'type' => 'int',
  978. 'not null' => TRUE,
  979. 'size' => 'normal',
  980. 'default' => '0',
  981. ),
  982. 'weight' => array(
  983. 'type' => 'int',
  984. 'not null' => TRUE,
  985. 'size' => 'normal',
  986. 'default' => '0',
  987. ),
  988. 'region' => array(
  989. 'type' => 'varchar',
  990. 'not null' => TRUE,
  991. 'length' => '64',
  992. 'default' => '',
  993. ),
  994. 'custom' => array(
  995. 'type' => 'int',
  996. 'not null' => TRUE,
  997. 'size' => 'normal',
  998. 'default' => '0',
  999. ),
  1000. 'visibility' => array(
  1001. 'type' => 'int',
  1002. 'not null' => TRUE,
  1003. 'size' => 'normal',
  1004. 'default' => '0',
  1005. ),
  1006. 'pages' => array(
  1007. 'type' => 'text',
  1008. 'not null' => TRUE,
  1009. 'size' => 'normal',
  1010. ),
  1011. 'title' => array(
  1012. 'type' => 'varchar',
  1013. 'not null' => TRUE,
  1014. 'length' => '255',
  1015. 'default' => '',
  1016. ),
  1017. 'cache' => array(
  1018. 'type' => 'int',
  1019. 'not null' => TRUE,
  1020. 'size' => 'normal',
  1021. 'default' => '1',
  1022. ),
  1023. 'i18n_mode' => array(
  1024. 'type' => 'int',
  1025. 'not null' => TRUE,
  1026. 'size' => 'normal',
  1027. 'default' => '0',
  1028. ),
  1029. ),
  1030. 'primary key' => array(
  1031. 'bid',
  1032. ),
  1033. 'mysql_character_set' => 'utf8',
  1034. ));
  1035. $connection->insert('block')
  1036. ->fields(array(
  1037. 'bid',
  1038. 'module',
  1039. 'delta',
  1040. 'theme',
  1041. 'status',
  1042. 'weight',
  1043. 'region',
  1044. 'custom',
  1045. 'visibility',
  1046. 'pages',
  1047. 'title',
  1048. 'cache',
  1049. 'i18n_mode',
  1050. ))
  1051. ->values(array(
  1052. 'bid' => '1',
  1053. 'module' => 'system',
  1054. 'delta' => 'main',
  1055. 'theme' => 'bartik',
  1056. 'status' => '1',
  1057. 'weight' => '0',
  1058. 'region' => 'content',
  1059. 'custom' => '0',
  1060. 'visibility' => '0',
  1061. 'pages' => '',
  1062. 'title' => '',
  1063. 'cache' => '-1',
  1064. 'i18n_mode' => '0',
  1065. ))
  1066. ->values(array(
  1067. 'bid' => '2',
  1068. 'module' => 'search',
  1069. 'delta' => 'form',
  1070. 'theme' => 'bartik',
  1071. 'status' => '1',
  1072. 'weight' => '-1',
  1073. 'region' => 'sidebar_first',
  1074. 'custom' => '0',
  1075. 'visibility' => '0',
  1076. 'pages' => '',
  1077. 'title' => '',
  1078. 'cache' => '-1',
  1079. 'i18n_mode' => '0',
  1080. ))
  1081. ->values(array(
  1082. 'bid' => '3',
  1083. 'module' => 'node',
  1084. 'delta' => 'recent',
  1085. 'theme' => 'seven',
  1086. 'status' => '0',
  1087. 'weight' => '10',
  1088. 'region' => '-1',
  1089. 'custom' => '0',
  1090. 'visibility' => '0',
  1091. 'pages' => '',
  1092. 'title' => '',
  1093. 'cache' => '-1',
  1094. 'i18n_mode' => '0',
  1095. ))
  1096. ->values(array(
  1097. 'bid' => '4',
  1098. 'module' => 'user',
  1099. 'delta' => 'login',
  1100. 'theme' => 'bartik',
  1101. 'status' => '1',
  1102. 'weight' => '0',
  1103. 'region' => 'sidebar_first',
  1104. 'custom' => '0',
  1105. 'visibility' => '0',
  1106. 'pages' => '',
  1107. 'title' => 'User login title',
  1108. 'cache' => '-1',
  1109. 'i18n_mode' => '1',
  1110. ))
  1111. ->values(array(
  1112. 'bid' => '5',
  1113. 'module' => 'system',
  1114. 'delta' => 'navigation',
  1115. 'theme' => 'bartik',
  1116. 'status' => '1',
  1117. 'weight' => '0',
  1118. 'region' => 'sidebar_first',
  1119. 'custom' => '0',
  1120. 'visibility' => '0',
  1121. 'pages' => '',
  1122. 'title' => '',
  1123. 'cache' => '-1',
  1124. 'i18n_mode' => '0',
  1125. ))
  1126. ->values(array(
  1127. 'bid' => '6',
  1128. 'module' => 'system',
  1129. 'delta' => 'powered-by',
  1130. 'theme' => 'bartik',
  1131. 'status' => '1',
  1132. 'weight' => '10',
  1133. 'region' => 'footer',
  1134. 'custom' => '0',
  1135. 'visibility' => '0',
  1136. 'pages' => '',
  1137. 'title' => '',
  1138. 'cache' => '-1',
  1139. 'i18n_mode' => '0',
  1140. ))
  1141. ->values(array(
  1142. 'bid' => '7',
  1143. 'module' => 'system',
  1144. 'delta' => 'help',
  1145. 'theme' => 'bartik',
  1146. 'status' => '1',
  1147. 'weight' => '0',
  1148. 'region' => 'help',
  1149. 'custom' => '0',
  1150. 'visibility' => '0',
  1151. 'pages' => '',
  1152. 'title' => '',
  1153. 'cache' => '-1',
  1154. 'i18n_mode' => '0',
  1155. ))
  1156. ->values(array(
  1157. 'bid' => '8',
  1158. 'module' => 'system',
  1159. 'delta' => 'main',
  1160. 'theme' => 'seven',
  1161. 'status' => '1',
  1162. 'weight' => '0',
  1163. 'region' => 'content',
  1164. 'custom' => '0',
  1165. 'visibility' => '0',
  1166. 'pages' => '',
  1167. 'title' => '',
  1168. 'cache' => '-1',
  1169. 'i18n_mode' => '0',
  1170. ))
  1171. ->values(array(
  1172. 'bid' => '9',
  1173. 'module' => 'system',
  1174. 'delta' => 'help',
  1175. 'theme' => 'seven',
  1176. 'status' => '1',
  1177. 'weight' => '0',
  1178. 'region' => 'help',
  1179. 'custom' => '0',
  1180. 'visibility' => '0',
  1181. 'pages' => '',
  1182. 'title' => '',
  1183. 'cache' => '-1',
  1184. 'i18n_mode' => '0',
  1185. ))
  1186. ->values(array(
  1187. 'bid' => '10',
  1188. 'module' => 'user',
  1189. 'delta' => 'login',
  1190. 'theme' => 'seven',
  1191. 'status' => '1',
  1192. 'weight' => '10',
  1193. 'region' => 'content',
  1194. 'custom' => '0',
  1195. 'visibility' => '0',
  1196. 'pages' => '',
  1197. 'title' => 'User login title',
  1198. 'cache' => '-1',
  1199. 'i18n_mode' => '1',
  1200. ))
  1201. ->values(array(
  1202. 'bid' => '11',
  1203. 'module' => 'user',
  1204. 'delta' => 'new',
  1205. 'theme' => 'seven',
  1206. 'status' => '0',
  1207. 'weight' => '0',
  1208. 'region' => '-1',
  1209. 'custom' => '0',
  1210. 'visibility' => '0',
  1211. 'pages' => '',
  1212. 'title' => '',
  1213. 'cache' => '-1',
  1214. 'i18n_mode' => '0',
  1215. ))
  1216. ->values(array(
  1217. 'bid' => '12',
  1218. 'module' => 'search',
  1219. 'delta' => 'form',
  1220. 'theme' => 'seven',
  1221. 'status' => '0',
  1222. 'weight' => '-10',
  1223. 'region' => '-1',
  1224. 'custom' => '0',
  1225. 'visibility' => '0',
  1226. 'pages' => '',
  1227. 'title' => '',
  1228. 'cache' => '-1',
  1229. 'i18n_mode' => '0',
  1230. ))
  1231. ->values(array(
  1232. 'bid' => '13',
  1233. 'module' => 'comment',
  1234. 'delta' => 'recent',
  1235. 'theme' => 'bartik',
  1236. 'status' => '0',
  1237. 'weight' => '0',
  1238. 'region' => '-1',
  1239. 'custom' => '0',
  1240. 'visibility' => '0',
  1241. 'pages' => '',
  1242. 'title' => '',
  1243. 'cache' => '1',
  1244. 'i18n_mode' => '0',
  1245. ))
  1246. ->values(array(
  1247. 'bid' => '14',
  1248. 'module' => 'node',
  1249. 'delta' => 'syndicate',
  1250. 'theme' => 'bartik',
  1251. 'status' => '0',
  1252. 'weight' => '0',
  1253. 'region' => '-1',
  1254. 'custom' => '0',
  1255. 'visibility' => '0',
  1256. 'pages' => '',
  1257. 'title' => '',
  1258. 'cache' => '-1',
  1259. 'i18n_mode' => '0',
  1260. ))
  1261. ->values(array(
  1262. 'bid' => '15',
  1263. 'module' => 'node',
  1264. 'delta' => 'recent',
  1265. 'theme' => 'bartik',
  1266. 'status' => '0',
  1267. 'weight' => '0',
  1268. 'region' => '-1',
  1269. 'custom' => '0',
  1270. 'visibility' => '0',
  1271. 'pages' => '',
  1272. 'title' => '',
  1273. 'cache' => '1',
  1274. 'i18n_mode' => '0',
  1275. ))
  1276. ->values(array(
  1277. 'bid' => '16',
  1278. 'module' => 'shortcut',
  1279. 'delta' => 'shortcuts',
  1280. 'theme' => 'bartik',
  1281. 'status' => '0',
  1282. 'weight' => '0',
  1283. 'region' => '-1',
  1284. 'custom' => '0',
  1285. 'visibility' => '0',
  1286. 'pages' => '',
  1287. 'title' => '',
  1288. 'cache' => '-1',
  1289. 'i18n_mode' => '0',
  1290. ))
  1291. ->values(array(
  1292. 'bid' => '17',
  1293. 'module' => 'system',
  1294. 'delta' => 'management',
  1295. 'theme' => 'bartik',
  1296. 'status' => '0',
  1297. 'weight' => '0',
  1298. 'region' => '-1',
  1299. 'custom' => '0',
  1300. 'visibility' => '0',
  1301. 'pages' => '',
  1302. 'title' => '',
  1303. 'cache' => '-1',
  1304. 'i18n_mode' => '0',
  1305. ))
  1306. ->values(array(
  1307. 'bid' => '18',
  1308. 'module' => 'system',
  1309. 'delta' => 'user-menu',
  1310. 'theme' => 'bartik',
  1311. 'status' => '0',
  1312. 'weight' => '0',
  1313. 'region' => '-1',
  1314. 'custom' => '0',
  1315. 'visibility' => '0',
  1316. 'pages' => '',
  1317. 'title' => '',
  1318. 'cache' => '-1',
  1319. 'i18n_mode' => '0',
  1320. ))
  1321. ->values(array(
  1322. 'bid' => '19',
  1323. 'module' => 'system',
  1324. 'delta' => 'main-menu',
  1325. 'theme' => 'bartik',
  1326. 'status' => '0',
  1327. 'weight' => '0',
  1328. 'region' => '-1',
  1329. 'custom' => '0',
  1330. 'visibility' => '0',
  1331. 'pages' => '',
  1332. 'title' => '',
  1333. 'cache' => '-1',
  1334. 'i18n_mode' => '0',
  1335. ))
  1336. ->values(array(
  1337. 'bid' => '20',
  1338. 'module' => 'user',
  1339. 'delta' => 'new',
  1340. 'theme' => 'bartik',
  1341. 'status' => '0',
  1342. 'weight' => '0',
  1343. 'region' => '-1',
  1344. 'custom' => '0',
  1345. 'visibility' => '0',
  1346. 'pages' => '',
  1347. 'title' => '',
  1348. 'cache' => '1',
  1349. 'i18n_mode' => '0',
  1350. ))
  1351. ->values(array(
  1352. 'bid' => '21',
  1353. 'module' => 'user',
  1354. 'delta' => 'online',
  1355. 'theme' => 'bartik',
  1356. 'status' => '0',
  1357. 'weight' => '0',
  1358. 'region' => '-1',
  1359. 'custom' => '0',
  1360. 'visibility' => '0',
  1361. 'pages' => '',
  1362. 'title' => '',
  1363. 'cache' => '-1',
  1364. 'i18n_mode' => '0',
  1365. ))
  1366. ->values(array(
  1367. 'bid' => '22',
  1368. 'module' => 'comment',
  1369. 'delta' => 'recent',
  1370. 'theme' => 'seven',
  1371. 'status' => '0',
  1372. 'weight' => '0',
  1373. 'region' => '-1',
  1374. 'custom' => '0',
  1375. 'visibility' => '0',
  1376. 'pages' => '',
  1377. 'title' => '',
  1378. 'cache' => '1',
  1379. 'i18n_mode' => '0',
  1380. ))
  1381. ->values(array(
  1382. 'bid' => '23',
  1383. 'module' => 'node',
  1384. 'delta' => 'syndicate',
  1385. 'theme' => 'seven',
  1386. 'status' => '0',
  1387. 'weight' => '0',
  1388. 'region' => '-1',
  1389. 'custom' => '0',
  1390. 'visibility' => '0',
  1391. 'pages' => '',
  1392. 'title' => '',
  1393. 'cache' => '-1',
  1394. 'i18n_mode' => '0',
  1395. ))
  1396. ->values(array(
  1397. 'bid' => '24',
  1398. 'module' => 'shortcut',
  1399. 'delta' => 'shortcuts',
  1400. 'theme' => 'seven',
  1401. 'status' => '0',
  1402. 'weight' => '0',
  1403. 'region' => '-1',
  1404. 'custom' => '0',
  1405. 'visibility' => '0',
  1406. 'pages' => '',
  1407. 'title' => '',
  1408. 'cache' => '-1',
  1409. 'i18n_mode' => '0',
  1410. ))
  1411. ->values(array(
  1412. 'bid' => '25',
  1413. 'module' => 'system',
  1414. 'delta' => 'powered-by',
  1415. 'theme' => 'seven',
  1416. 'status' => '0',
  1417. 'weight' => '10',
  1418. 'region' => '-1',
  1419. 'custom' => '0',
  1420. 'visibility' => '0',
  1421. 'pages' => '',
  1422. 'title' => '',
  1423. 'cache' => '-1',
  1424. 'i18n_mode' => '0',
  1425. ))
  1426. ->values(array(
  1427. 'bid' => '26',
  1428. 'module' => 'system',
  1429. 'delta' => 'navigation',
  1430. 'theme' => 'seven',
  1431. 'status' => '0',
  1432. 'weight' => '0',
  1433. 'region' => '-1',
  1434. 'custom' => '0',
  1435. 'visibility' => '0',
  1436. 'pages' => '',
  1437. 'title' => '',
  1438. 'cache' => '-1',
  1439. 'i18n_mode' => '0',
  1440. ))
  1441. ->values(array(
  1442. 'bid' => '27',
  1443. 'module' => 'system',
  1444. 'delta' => 'management',
  1445. 'theme' => 'seven',
  1446. 'status' => '0',
  1447. 'weight' => '0',
  1448. 'region' => '-1',
  1449. 'custom' => '0',
  1450. 'visibility' => '0',
  1451. 'pages' => '',
  1452. 'title' => '',
  1453. 'cache' => '-1',
  1454. 'i18n_mode' => '0',
  1455. ))
  1456. ->values(array(
  1457. 'bid' => '28',
  1458. 'module' => 'system',
  1459. 'delta' => 'user-menu',
  1460. 'theme' => 'seven',
  1461. 'status' => '0',
  1462. 'weight' => '0',
  1463. 'region' => '-1',
  1464. 'custom' => '0',
  1465. 'visibility' => '0',
  1466. 'pages' => '',
  1467. 'title' => '',
  1468. 'cache' => '-1',
  1469. 'i18n_mode' => '0',
  1470. ))
  1471. ->values(array(
  1472. 'bid' => '29',
  1473. 'module' => 'system',
  1474. 'delta' => 'main-menu',
  1475. 'theme' => 'seven',
  1476. 'status' => '0',
  1477. 'weight' => '0',
  1478. 'region' => '-1',
  1479. 'custom' => '0',
  1480. 'visibility' => '0',
  1481. 'pages' => '',
  1482. 'title' => '',
  1483. 'cache' => '-1',
  1484. 'i18n_mode' => '0',
  1485. ))
  1486. ->values(array(
  1487. 'bid' => '30',
  1488. 'module' => 'user',
  1489. 'delta' => 'online',
  1490. 'theme' => 'seven',
  1491. 'status' => '0',
  1492. 'weight' => '0',
  1493. 'region' => '-1',
  1494. 'custom' => '0',
  1495. 'visibility' => '0',
  1496. 'pages' => '',
  1497. 'title' => '',
  1498. 'cache' => '-1',
  1499. 'i18n_mode' => '0',
  1500. ))
  1501. ->values(array(
  1502. 'bid' => '31',
  1503. 'module' => 'blog',
  1504. 'delta' => 'recent',
  1505. 'theme' => 'bartik',
  1506. 'status' => '0',
  1507. 'weight' => '0',
  1508. 'region' => '-1',
  1509. 'custom' => '0',
  1510. 'visibility' => '0',
  1511. 'pages' => '',
  1512. 'title' => '',
  1513. 'cache' => '1',
  1514. 'i18n_mode' => '0',
  1515. ))
  1516. ->values(array(
  1517. 'bid' => '32',
  1518. 'module' => 'book',
  1519. 'delta' => 'navigation',
  1520. 'theme' => 'bartik',
  1521. 'status' => '0',
  1522. 'weight' => '0',
  1523. 'region' => '-1',
  1524. 'custom' => '0',
  1525. 'visibility' => '0',
  1526. 'pages' => '',
  1527. 'title' => '',
  1528. 'cache' => '5',
  1529. 'i18n_mode' => '0',
  1530. ))
  1531. ->values(array(
  1532. 'bid' => '33',
  1533. 'module' => 'locale',
  1534. 'delta' => 'language',
  1535. 'theme' => 'bartik',
  1536. 'status' => '0',
  1537. 'weight' => '0',
  1538. 'region' => '-1',
  1539. 'custom' => '0',
  1540. 'visibility' => '0',
  1541. 'pages' => '',
  1542. 'title' => '',
  1543. 'cache' => '-1',
  1544. 'i18n_mode' => '0',
  1545. ))
  1546. ->values(array(
  1547. 'bid' => '34',
  1548. 'module' => 'forum',
  1549. 'delta' => 'active',
  1550. 'theme' => 'bartik',
  1551. 'status' => '0',
  1552. 'weight' => '0',
  1553. 'region' => '-1',
  1554. 'custom' => '0',
  1555. 'visibility' => '0',
  1556. 'pages' => '',
  1557. 'title' => '',
  1558. 'cache' => '-2',
  1559. 'i18n_mode' => '0',
  1560. ))
  1561. ->values(array(
  1562. 'bid' => '35',
  1563. 'module' => 'forum',
  1564. 'delta' => 'new',
  1565. 'theme' => 'bartik',
  1566. 'status' => '0',
  1567. 'weight' => '0',
  1568. 'region' => '-1',
  1569. 'custom' => '0',
  1570. 'visibility' => '0',
  1571. 'pages' => '',
  1572. 'title' => '',
  1573. 'cache' => '-2',
  1574. 'i18n_mode' => '0',
  1575. ))
  1576. ->values(array(
  1577. 'bid' => '36',
  1578. 'module' => 'blog',
  1579. 'delta' => 'recent',
  1580. 'theme' => 'seven',
  1581. 'status' => '0',
  1582. 'weight' => '0',
  1583. 'region' => '-1',
  1584. 'custom' => '0',
  1585. 'visibility' => '0',
  1586. 'pages' => '',
  1587. 'title' => '',
  1588. 'cache' => '1',
  1589. 'i18n_mode' => '0',
  1590. ))
  1591. ->values(array(
  1592. 'bid' => '37',
  1593. 'module' => 'book',
  1594. 'delta' => 'navigation',
  1595. 'theme' => 'seven',
  1596. 'status' => '0',
  1597. 'weight' => '0',
  1598. 'region' => '-1',
  1599. 'custom' => '0',
  1600. 'visibility' => '0',
  1601. 'pages' => '',
  1602. 'title' => '',
  1603. 'cache' => '5',
  1604. 'i18n_mode' => '0',
  1605. ))
  1606. ->values(array(
  1607. 'bid' => '38',
  1608. 'module' => 'locale',
  1609. 'delta' => 'language',
  1610. 'theme' => 'seven',
  1611. 'status' => '0',
  1612. 'weight' => '0',
  1613. 'region' => '-1',
  1614. 'custom' => '0',
  1615. 'visibility' => '0',
  1616. 'pages' => '',
  1617. 'title' => '',
  1618. 'cache' => '-1',
  1619. 'i18n_mode' => '0',
  1620. ))
  1621. ->values(array(
  1622. 'bid' => '39',
  1623. 'module' => 'forum',
  1624. 'delta' => 'active',
  1625. 'theme' => 'seven',
  1626. 'status' => '0',
  1627. 'weight' => '0',
  1628. 'region' => '-1',
  1629. 'custom' => '0',
  1630. 'visibility' => '0',
  1631. 'pages' => '',
  1632. 'title' => '',
  1633. 'cache' => '-2',
  1634. 'i18n_mode' => '0',
  1635. ))
  1636. ->values(array(
  1637. 'bid' => '40',
  1638. 'module' => 'forum',
  1639. 'delta' => 'new',
  1640. 'theme' => 'seven',
  1641. 'status' => '0',
  1642. 'weight' => '0',
  1643. 'region' => '-1',
  1644. 'custom' => '0',
  1645. 'visibility' => '0',
  1646. 'pages' => '',
  1647. 'title' => '',
  1648. 'cache' => '-2',
  1649. 'i18n_mode' => '0',
  1650. ))
  1651. ->values(array(
  1652. 'bid' => '41',
  1653. 'module' => 'menu',
  1654. 'delta' => 'menu-test-menu',
  1655. 'theme' => 'bartik',
  1656. 'status' => '0',
  1657. 'weight' => '0',
  1658. 'region' => '-1',
  1659. 'custom' => '0',
  1660. 'visibility' => '0',
  1661. 'pages' => '',
  1662. 'title' => '',
  1663. 'cache' => '-1',
  1664. 'i18n_mode' => '0',
  1665. ))
  1666. ->values(array(
  1667. 'bid' => '42',
  1668. 'module' => 'statistics',
  1669. 'delta' => 'popular',
  1670. 'theme' => 'bartik',
  1671. 'status' => '0',
  1672. 'weight' => '0',
  1673. 'region' => '-1',
  1674. 'custom' => '0',
  1675. 'visibility' => '0',
  1676. 'pages' => '',
  1677. 'title' => '',
  1678. 'cache' => '-1',
  1679. 'i18n_mode' => '0',
  1680. ))
  1681. ->values(array(
  1682. 'bid' => '43',
  1683. 'module' => 'menu',
  1684. 'delta' => 'menu-test-menu',
  1685. 'theme' => 'seven',
  1686. 'status' => '0',
  1687. 'weight' => '0',
  1688. 'region' => '-1',
  1689. 'custom' => '0',
  1690. 'visibility' => '0',
  1691. 'pages' => '',
  1692. 'title' => '',
  1693. 'cache' => '-1',
  1694. 'i18n_mode' => '0',
  1695. ))
  1696. ->values(array(
  1697. 'bid' => '44',
  1698. 'module' => 'statistics',
  1699. 'delta' => 'popular',
  1700. 'theme' => 'seven',
  1701. 'status' => '0',
  1702. 'weight' => '0',
  1703. 'region' => '-1',
  1704. 'custom' => '0',
  1705. 'visibility' => '0',
  1706. 'pages' => '',
  1707. 'title' => '',
  1708. 'cache' => '-1',
  1709. 'i18n_mode' => '0',
  1710. ))
  1711. ->values(array(
  1712. 'bid' => '45',
  1713. 'module' => 'block',
  1714. 'delta' => '1',
  1715. 'theme' => 'bartik',
  1716. 'status' => '1',
  1717. 'weight' => '0',
  1718. 'region' => 'highlighted',
  1719. 'custom' => '0',
  1720. 'visibility' => '0',
  1721. 'pages' => '',
  1722. 'title' => 'Mildly amusing limerick of the day',
  1723. 'cache' => '-1',
  1724. 'i18n_mode' => '0',
  1725. ))
  1726. ->values(array(
  1727. 'bid' => '46',
  1728. 'module' => 'block',
  1729. 'delta' => '1',
  1730. 'theme' => 'seven',
  1731. 'status' => '0',
  1732. 'weight' => '0',
  1733. 'region' => '-1',
  1734. 'custom' => '0',
  1735. 'visibility' => '0',
  1736. 'pages' => '',
  1737. 'title' => 'Mildly amusing limerick of the day',
  1738. 'cache' => '-1',
  1739. 'i18n_mode' => '0',
  1740. ))
  1741. ->values(array(
  1742. 'bid' => '47',
  1743. 'module' => 'aggregator',
  1744. 'delta' => 'feed-1',
  1745. 'theme' => 'bartik',
  1746. 'status' => '0',
  1747. 'weight' => '0',
  1748. 'region' => '-1',
  1749. 'custom' => '0',
  1750. 'visibility' => '0',
  1751. 'pages' => '',
  1752. 'title' => '',
  1753. 'cache' => '1',
  1754. 'i18n_mode' => '0',
  1755. ))
  1756. ->values(array(
  1757. 'bid' => '48',
  1758. 'module' => 'aggregator',
  1759. 'delta' => 'feed-1',
  1760. 'theme' => 'seven',
  1761. 'status' => '0',
  1762. 'weight' => '0',
  1763. 'region' => '-1',
  1764. 'custom' => '0',
  1765. 'visibility' => '0',
  1766. 'pages' => '',
  1767. 'title' => '',
  1768. 'cache' => '1',
  1769. 'i18n_mode' => '0',
  1770. ))
  1771. ->values(array(
  1772. 'bid' => '49',
  1773. 'module' => 'locale',
  1774. 'delta' => 'language_content',
  1775. 'theme' => 'bartik',
  1776. 'status' => '0',
  1777. 'weight' => '0',
  1778. 'region' => '-1',
  1779. 'custom' => '0',
  1780. 'visibility' => '0',
  1781. 'pages' => '',
  1782. 'title' => '',
  1783. 'cache' => '-1',
  1784. 'i18n_mode' => '0',
  1785. ))
  1786. ->values(array(
  1787. 'bid' => '50',
  1788. 'module' => 'locale',
  1789. 'delta' => 'language_content',
  1790. 'theme' => 'seven',
  1791. 'status' => '0',
  1792. 'weight' => '0',
  1793. 'region' => '-1',
  1794. 'custom' => '0',
  1795. 'visibility' => '0',
  1796. 'pages' => '',
  1797. 'title' => '',
  1798. 'cache' => '-1',
  1799. 'i18n_mode' => '0',
  1800. ))
  1801. ->execute();
  1802. $connection->schema()->createTable('block_custom', array(
  1803. 'fields' => array(
  1804. 'bid' => array(
  1805. 'type' => 'serial',
  1806. 'not null' => TRUE,
  1807. 'size' => 'normal',
  1808. 'unsigned' => TRUE,
  1809. ),
  1810. 'body' => array(
  1811. 'type' => 'text',
  1812. 'not null' => FALSE,
  1813. 'size' => 'normal',
  1814. ),
  1815. 'info' => array(
  1816. 'type' => 'varchar',
  1817. 'not null' => TRUE,
  1818. 'length' => '128',
  1819. 'default' => '',
  1820. ),
  1821. 'format' => array(
  1822. 'type' => 'varchar',
  1823. 'not null' => FALSE,
  1824. 'length' => '255',
  1825. ),
  1826. ),
  1827. 'primary key' => array(
  1828. 'bid',
  1829. ),
  1830. 'mysql_character_set' => 'utf8',
  1831. ));
  1832. $connection->insert('block_custom')
  1833. ->fields(array(
  1834. 'bid',
  1835. 'body',
  1836. 'info',
  1837. 'format',
  1838. ))
  1839. ->values(array(
  1840. 'bid' => '1',
  1841. 'body' => "A fellow jumped off a high wall\r\nAnd had a most terrible fall\r\nHe went back to bed\r\nWith a bump on his head\r\nThat's why you don't jump off a wall",
  1842. 'info' => 'Limerick',
  1843. 'format' => 'filtered_html',
  1844. ))
  1845. ->execute();
  1846. $connection->schema()->createTable('block_node_type', array(
  1847. 'fields' => array(
  1848. 'module' => array(
  1849. 'type' => 'varchar',
  1850. 'not null' => TRUE,
  1851. 'length' => '64',
  1852. ),
  1853. 'delta' => array(
  1854. 'type' => 'varchar',
  1855. 'not null' => TRUE,
  1856. 'length' => '32',
  1857. ),
  1858. 'type' => array(
  1859. 'type' => 'varchar',
  1860. 'not null' => TRUE,
  1861. 'length' => '32',
  1862. ),
  1863. ),
  1864. 'primary key' => array(
  1865. 'module',
  1866. 'delta',
  1867. 'type',
  1868. ),
  1869. 'mysql_character_set' => 'utf8',
  1870. ));
  1871. $connection->schema()->createTable('block_role', array(
  1872. 'fields' => array(
  1873. 'module' => array(
  1874. 'type' => 'varchar',
  1875. 'not null' => TRUE,
  1876. 'length' => '64',
  1877. ),
  1878. 'delta' => array(
  1879. 'type' => 'varchar',
  1880. 'not null' => TRUE,
  1881. 'length' => '32',
  1882. ),
  1883. 'rid' => array(
  1884. 'type' => 'int',
  1885. 'not null' => TRUE,
  1886. 'size' => 'normal',
  1887. 'unsigned' => TRUE,
  1888. ),
  1889. ),
  1890. 'primary key' => array(
  1891. 'module',
  1892. 'delta',
  1893. 'rid',
  1894. ),
  1895. 'mysql_character_set' => 'utf8',
  1896. ));
  1897. $connection->insert('block_role')
  1898. ->fields(array(
  1899. 'module',
  1900. 'delta',
  1901. 'rid',
  1902. ))
  1903. ->values(array(
  1904. 'module' => 'block',
  1905. 'delta' => '1',
  1906. 'rid' => '2',
  1907. ))
  1908. ->execute();
  1909. $connection->schema()->createTable('blocked_ips', array(
  1910. 'fields' => array(
  1911. 'iid' => array(
  1912. 'type' => 'serial',
  1913. 'not null' => TRUE,
  1914. 'size' => 'normal',
  1915. 'unsigned' => TRUE,
  1916. ),
  1917. 'ip' => array(
  1918. 'type' => 'varchar',
  1919. 'not null' => TRUE,
  1920. 'length' => '40',
  1921. 'default' => '',
  1922. ),
  1923. ),
  1924. 'primary key' => array(
  1925. 'iid',
  1926. ),
  1927. 'mysql_character_set' => 'utf8',
  1928. ));
  1929. $connection->insert('blocked_ips')
  1930. ->fields(array(
  1931. 'iid',
  1932. 'ip',
  1933. ))
  1934. ->values(array(
  1935. 'iid' => '1',
  1936. 'ip' => '111.111.111.111',
  1937. ))
  1938. ->execute();
  1939. $connection->schema()->createTable('book', array(
  1940. 'fields' => array(
  1941. 'mlid' => array(
  1942. 'type' => 'int',
  1943. 'not null' => TRUE,
  1944. 'size' => 'normal',
  1945. 'default' => '0',
  1946. 'unsigned' => TRUE,
  1947. ),
  1948. 'nid' => array(
  1949. 'type' => 'int',
  1950. 'not null' => TRUE,
  1951. 'size' => 'normal',
  1952. 'default' => '0',
  1953. 'unsigned' => TRUE,
  1954. ),
  1955. 'bid' => array(
  1956. 'type' => 'int',
  1957. 'not null' => TRUE,
  1958. 'size' => 'normal',
  1959. 'default' => '0',
  1960. 'unsigned' => TRUE,
  1961. ),
  1962. ),
  1963. 'primary key' => array(
  1964. 'mlid',
  1965. ),
  1966. 'mysql_character_set' => 'utf8',
  1967. ));
  1968. $connection->insert('book')
  1969. ->fields(array(
  1970. 'mlid',
  1971. 'nid',
  1972. 'bid',
  1973. ))
  1974. ->values(array(
  1975. 'mlid' => '480',
  1976. 'nid' => '4',
  1977. 'bid' => '4',
  1978. ))
  1979. ->values(array(
  1980. 'mlid' => '481',
  1981. 'nid' => '6',
  1982. 'bid' => '4',
  1983. ))
  1984. ->values(array(
  1985. 'mlid' => '482',
  1986. 'nid' => '2',
  1987. 'bid' => '4',
  1988. ))
  1989. ->values(array(
  1990. 'mlid' => '483',
  1991. 'nid' => '1',
  1992. 'bid' => '8',
  1993. ))
  1994. ->execute();
  1995. $connection->schema()->createTable('cache', array(
  1996. 'fields' => array(
  1997. 'cid' => array(
  1998. 'type' => 'varchar',
  1999. 'not null' => TRUE,
  2000. 'length' => '255',
  2001. 'default' => '',
  2002. ),
  2003. 'data' => array(
  2004. 'type' => 'blob',
  2005. 'not null' => FALSE,
  2006. 'size' => 'normal',
  2007. ),
  2008. 'expire' => array(
  2009. 'type' => 'int',
  2010. 'not null' => TRUE,
  2011. 'size' => 'normal',
  2012. 'default' => '0',
  2013. ),
  2014. 'created' => array(
  2015. 'type' => 'int',
  2016. 'not null' => TRUE,
  2017. 'size' => 'normal',
  2018. 'default' => '0',
  2019. ),
  2020. 'serialized' => array(
  2021. 'type' => 'int',
  2022. 'not null' => TRUE,
  2023. 'size' => 'normal',
  2024. 'default' => '0',
  2025. ),
  2026. ),
  2027. 'primary key' => array(
  2028. 'cid',
  2029. ),
  2030. 'mysql_character_set' => 'utf8',
  2031. ));
  2032. $connection->schema()->createTable('cache_block', array(
  2033. 'fields' => array(
  2034. 'cid' => array(
  2035. 'type' => 'varchar',
  2036. 'not null' => TRUE,
  2037. 'length' => '255',
  2038. 'default' => '',
  2039. ),
  2040. 'data' => array(
  2041. 'type' => 'blob',
  2042. 'not null' => FALSE,
  2043. 'size' => 'normal',
  2044. ),
  2045. 'expire' => array(
  2046. 'type' => 'int',
  2047. 'not null' => TRUE,
  2048. 'size' => 'normal',
  2049. 'default' => '0',
  2050. ),
  2051. 'created' => array(
  2052. 'type' => 'int',
  2053. 'not null' => TRUE,
  2054. 'size' => 'normal',
  2055. 'default' => '0',
  2056. ),
  2057. 'serialized' => array(
  2058. 'type' => 'int',
  2059. 'not null' => TRUE,
  2060. 'size' => 'normal',
  2061. 'default' => '0',
  2062. ),
  2063. ),
  2064. 'primary key' => array(
  2065. 'cid',
  2066. ),
  2067. 'mysql_character_set' => 'utf8',
  2068. ));
  2069. $connection->schema()->createTable('cache_bootstrap', array(
  2070. 'fields' => array(
  2071. 'cid' => array(
  2072. 'type' => 'varchar',
  2073. 'not null' => TRUE,
  2074. 'length' => '255',
  2075. 'default' => '',
  2076. ),
  2077. 'data' => array(
  2078. 'type' => 'blob',
  2079. 'not null' => FALSE,
  2080. 'size' => 'normal',
  2081. ),
  2082. 'expire' => array(
  2083. 'type' => 'int',
  2084. 'not null' => TRUE,
  2085. 'size' => 'normal',
  2086. 'default' => '0',
  2087. ),
  2088. 'created' => array(
  2089. 'type' => 'int',
  2090. 'not null' => TRUE,
  2091. 'size' => 'normal',
  2092. 'default' => '0',
  2093. ),
  2094. 'serialized' => array(
  2095. 'type' => 'int',
  2096. 'not null' => TRUE,
  2097. 'size' => 'normal',
  2098. 'default' => '0',
  2099. ),
  2100. ),
  2101. 'primary key' => array(
  2102. 'cid',
  2103. ),
  2104. 'mysql_character_set' => 'utf8',
  2105. ));
  2106. $connection->schema()->createTable('cache_field', array(
  2107. 'fields' => array(
  2108. 'cid' => array(
  2109. 'type' => 'varchar',
  2110. 'not null' => TRUE,
  2111. 'length' => '255',
  2112. 'default' => '',
  2113. ),
  2114. 'data' => array(
  2115. 'type' => 'blob',
  2116. 'not null' => FALSE,
  2117. 'size' => 'normal',
  2118. ),
  2119. 'expire' => array(
  2120. 'type' => 'int',
  2121. 'not null' => TRUE,
  2122. 'size' => 'normal',
  2123. 'default' => '0',
  2124. ),
  2125. 'created' => array(
  2126. 'type' => 'int',
  2127. 'not null' => TRUE,
  2128. 'size' => 'normal',
  2129. 'default' => '0',
  2130. ),
  2131. 'serialized' => array(
  2132. 'type' => 'int',
  2133. 'not null' => TRUE,
  2134. 'size' => 'normal',
  2135. 'default' => '0',
  2136. ),
  2137. ),
  2138. 'primary key' => array(
  2139. 'cid',
  2140. ),
  2141. 'mysql_character_set' => 'utf8',
  2142. ));
  2143. $connection->schema()->createTable('cache_filter', array(
  2144. 'fields' => array(
  2145. 'cid' => array(
  2146. 'type' => 'varchar',
  2147. 'not null' => TRUE,
  2148. 'length' => '255',
  2149. 'default' => '',
  2150. ),
  2151. 'data' => array(
  2152. 'type' => 'blob',
  2153. 'not null' => FALSE,
  2154. 'size' => 'normal',
  2155. ),
  2156. 'expire' => array(
  2157. 'type' => 'int',
  2158. 'not null' => TRUE,
  2159. 'size' => 'normal',
  2160. 'default' => '0',
  2161. ),
  2162. 'created' => array(
  2163. 'type' => 'int',
  2164. 'not null' => TRUE,
  2165. 'size' => 'normal',
  2166. 'default' => '0',
  2167. ),
  2168. 'serialized' => array(
  2169. 'type' => 'int',
  2170. 'not null' => TRUE,
  2171. 'size' => 'normal',
  2172. 'default' => '0',
  2173. ),
  2174. ),
  2175. 'primary key' => array(
  2176. 'cid',
  2177. ),
  2178. 'mysql_character_set' => 'utf8',
  2179. ));
  2180. $connection->schema()->createTable('cache_form', array(
  2181. 'fields' => array(
  2182. 'cid' => array(
  2183. 'type' => 'varchar',
  2184. 'not null' => TRUE,
  2185. 'length' => '255',
  2186. 'default' => '',
  2187. ),
  2188. 'data' => array(
  2189. 'type' => 'blob',
  2190. 'not null' => FALSE,
  2191. 'size' => 'normal',
  2192. ),
  2193. 'expire' => array(
  2194. 'type' => 'int',
  2195. 'not null' => TRUE,

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