Commit 6eb1915a authored by Gábor Hojtsy's avatar Gábor Hojtsy

Issue #3016011 by mikelutz, quietone, alexpott: Reroll all migrate dump files

(cherry picked from commit 2b511ec3)
parent 2047ded9
......@@ -162,12 +162,19 @@ protected function getTableSchema(Connection $connection, $table) {
$definition['fields'][$name]['precision'] = $matches[2];
$definition['fields'][$name]['scale'] = $matches[3];
}
elseif ($type === 'time' || $type === 'datetime') {
elseif ($type === 'time') {
// @todo Core doesn't support these, but copied from `migrate-db.sh` for now.
// Convert to varchar.
$definition['fields'][$name]['type'] = 'varchar';
$definition['fields'][$name]['length'] = '100';
}
elseif ($type === 'datetime') {
// Adjust for other database types.
$definition['fields'][$name]['mysql_type'] = 'datetime';
$definition['fields'][$name]['pgsql_type'] = 'timestamp without time zone';
$definition['fields'][$name]['sqlite_type'] = 'varchar';
$definition['fields'][$name]['sqlsrv_type'] = 'smalldatetime';
}
elseif (!isset($definition['fields'][$name]['size'])) {
// Try use the provided length, if it doesn't exist default to 100. It's
// not great but good enough for our dumps at this point.
......
......@@ -292,7 +292,6 @@
'description' => 'Block current user',
))
->execute();
$connection->schema()->createTable('actions_aid', array(
'fields' => array(
'aid' => array(
......@@ -331,7 +330,6 @@
'aid' => '6',
))
->execute();
$connection->schema()->createTable('aggregator_category', array(
'fields' => array(
'cid' => array(
......@@ -463,7 +461,6 @@
'block' => '7',
))
->execute();
$connection->schema()->createTable('aggregator_item', array(
'fields' => array(
'iid' => array(
......@@ -539,7 +536,6 @@
'guid' => '395218 at https://groups.drupal.org',
))
->execute();
$connection->schema()->createTable('authmap', array(
'fields' => array(
'aid' => array(
......@@ -617,7 +613,6 @@
'batch' => NULL,
))
->execute();
$connection->schema()->createTable('blocks', array(
'fields' => array(
'bid' => array(
......@@ -1080,7 +1075,6 @@
'cache' => '-1',
))
->execute();
$connection->schema()->createTable('blocks_roles', array(
'fields' => array(
'module' => array(
......@@ -1125,7 +1119,6 @@
'rid' => '3',
))
->execute();
$connection->schema()->createTable('book', array(
'fields' => array(
'mlid' => array(
......@@ -1188,7 +1181,6 @@
'bid' => '8',
))
->execute();
$connection->schema()->createTable('boxes', array(
'fields' => array(
'bid' => array(
......@@ -1241,7 +1233,6 @@
'format' => '2',
))
->execute();
$connection->schema()->createTable('cache', array(
'fields' => array(
'cid' => array(
......@@ -2023,7 +2014,6 @@
'homepage' => '',
))
->execute();
$connection->schema()->createTable('config', array(
'fields' => array(
'collection' => array(
......@@ -2063,7 +2053,6 @@
'data' => 'a:1:{s:4:"path";a:1:{s:9:"temporary";s:4:"/tmp";}}',
))
->execute();
$connection->schema()->createTable('contact', array(
'fields' => array(
'cid' => array(
......@@ -2141,7 +2130,6 @@
'selected' => '0',
))
->execute();
$connection->schema()->createTable('content_field_company', array(
'fields' => array(
'vid' => array(
......@@ -2219,7 +2207,6 @@
'field_company_nid' => '16',
))
->execute();
$connection->schema()->createTable('content_field_image', array(
'fields' => array(
'vid' => array(
......@@ -2288,7 +2275,6 @@
'field_image_data' => 'a:2:{s:3:"alt";s:0:"";s:5:"title";s:0:"";}',
))
->execute();
$connection->schema()->createTable('content_field_multivalue', array(
'fields' => array(
'vid' => array(
......@@ -2351,7 +2337,6 @@
'delta' => '1',
))
->execute();
$connection->schema()->createTable('content_field_test', array(
'fields' => array(
'vid' => array(
......@@ -2429,7 +2414,6 @@
'field_test_format' => '1',
))
->execute();
$connection->schema()->createTable('content_field_test_text_single_checkbox', array(
'fields' => array(
'vid' => array(
......@@ -2495,7 +2479,6 @@
'field_test_text_single_checkbox_value' => '0',
))
->execute();
$connection->schema()->createTable('content_field_test_two', array(
'fields' => array(
'vid' => array(
......@@ -2581,7 +2564,6 @@
'field_test_two_value' => '20',
))
->execute();
$connection->schema()->createTable('content_group', array(
'fields' => array(
'group_type' => array(
......@@ -3073,7 +3055,6 @@
'locked' => '0',
))
->execute();
$connection->schema()->createTable('content_node_field_instance', array(
'fields' => array(
'field_name' => array(
......@@ -3515,7 +3496,6 @@
'widget_active' => '1',
))
->execute();
$connection->schema()->createTable('content_type_employee', array(
'fields' => array(
'vid' => array(
......@@ -3601,7 +3581,6 @@
'field_company_3_nid' => NULL,
))
->execute();
$connection->schema()->createTable('content_type_page', array(
'fields' => array(
'vid' => array(
......@@ -3687,7 +3666,6 @@
'field_reference_2_nid' => '11',
))
->execute();
$connection->schema()->createTable('content_type_story', array(
'fields' => array(
'nid' => array(
......@@ -4057,7 +4035,6 @@
'field_test_string_selectlist_value' => NULL,
))
->execute();
$connection->schema()->createTable('content_type_test_page', array(
'fields' => array(
'vid' => array(
......@@ -4148,7 +4125,6 @@
'vid' => '11',
))
->execute();
$connection->schema()->createTable('date_format_locale', array(
'fields' => array(
'format' => array(
......@@ -4221,7 +4197,6 @@
'locked' => '1',
))
->execute();
$connection->schema()->createTable('date_formats', array(
'fields' => array(
'dfid' => array(
......@@ -4471,7 +4446,6 @@
'locked' => '1',
))
->execute();
$connection->schema()->createTable('event', array(
'fields' => array(
'nid' => array(
......@@ -8271,7 +8245,6 @@
'is_dst' => '0',
))
->execute();
$connection->schema()->createTable('files', array(
'fields' => array(
'fid' => array(
......@@ -8394,7 +8367,6 @@
'timestamp' => '1420858106',
))
->execute();
$connection->schema()->createTable('filter_formats', array(
'fields' => array(
'format' => array(
......@@ -8459,7 +8431,6 @@
'cache' => '0',
))
->execute();
$connection->schema()->createTable('filters', array(
'fields' => array(
'fid' => array(
......@@ -8591,7 +8562,6 @@
'weight' => '10',
))
->execute();
$connection->schema()->createTable('flood', array(
'fields' => array(
'fid' => array(
......@@ -8674,7 +8644,6 @@
'tid' => '8',
))
->execute();
$connection->schema()->createTable('history', array(
'fields' => array(
'uid' => array(
......@@ -8770,7 +8739,6 @@
'timestamp' => '1534014763',
))
->execute();
$connection->schema()->createTable('i18n_blocks', array(
'fields' => array(
'ibid' => array(
......@@ -8832,7 +8800,6 @@
'language' => 'zu',
))
->execute();
$connection->schema()->createTable('i18n_strings', array(
'fields' => array(
'lid' => array(
......@@ -10096,7 +10063,6 @@
'format' => '0',
))
->execute();
$connection->schema()->createTable('i18n_variable', array(
'fields' => array(
'name' => array(
......@@ -10536,7 +10502,6 @@
'value' => 's:1:"1";',
))
->execute();
$connection->schema()->createTable('imagecache_action', array(
'fields' => array(
'actionid' => array(
......@@ -10622,7 +10587,6 @@
'data' => 'a:3:{s:7:"degrees";s:2:"55";s:6:"random";i:0;s:7:"bgcolor";s:0:"";}',
))
->execute();
$connection->schema()->createTable('imagecache_preset', array(
'fields' => array(
'presetid' => array(
......@@ -10657,7 +10621,6 @@
'presetname' => 'big_blue_cheese',
))
->execute();
$connection->schema()->createTable('languages', array(
'fields' => array(
'language' => array(
......@@ -10793,7 +10756,6 @@
'javascript' => '',
))
->execute();
$connection->schema()->createTable('locales_source', array(
'fields' => array(
'lid' => array(
......@@ -22688,7 +22650,6 @@
'version' => '1',
))
->execute();
$connection->schema()->createTable('locales_target', array(
'fields' => array(
'lid' => array(
......@@ -27748,24 +27709,24 @@
'i18n_status' => '0',
))
->values(array(
'lid' => '1678',
'translation' => 'fr - I really, really, really love migrating ',
'lid' => '1672',
'translation' => 'fr - Type',
'language' => 'fr',
'plid' => '0',
'plural' => '0',
'i18n_status' => '0',
))
->values(array(
'lid' => '1690',
'translation' => 'Noir',
'lid' => '1678',
'translation' => 'fr - I really, really, really love migrating ',
'language' => 'fr',
'plid' => '0',
'plural' => '0',
'i18n_status' => '0',
))
->values(array(
'lid' => '1672',
'translation' => 'fr - Type',
'lid' => '1690',
'translation' => 'Noir',
'language' => 'fr',
'plid' => '0',
'plural' => '0',
......@@ -27900,24 +27861,24 @@
'i18n_status' => '0',
))
->values(array(
'lid' => '1690',
'translation' => 'Okumnyama',
'lid' => '1672',
'translation' => 'zu - Type',
'language' => 'zu',
'plid' => '0',
'plural' => '0',
'i18n_status' => '0',
))
->values(array(
'lid' => '1691',
'translation' => 'Mhlophe',
'lid' => '1690',
'translation' => 'Okumnyama',
'language' => 'zu',
'plid' => '0',
'plural' => '0',
'i18n_status' => '0',
))
->values(array(
'lid' => '1672',
'translation' => 'zu - Type',
'lid' => '1691',
'translation' => 'Mhlophe',
'language' => 'zu',
'plid' => '0',
'plural' => '0',
......@@ -27940,7 +27901,6 @@
'i18n_status' => '0',
))
->execute();
$connection->schema()->createTable('menu_custom', array(
'fields' => array(
'menu_name' => array(
......@@ -27989,7 +27949,6 @@
'description' => 'Secondary links are often used for pages like legal notices, contact details, and other secondary navigation items that play a lesser role than primary links',
))
->execute();
$connection->schema()->createTable('menu_links', array(
'fields' => array(
'menu_name' => array(
......@@ -34478,7 +34437,6 @@
'updated' => '0',
))
->execute();
$connection->schema()->createTable('menu_router', array(
'fields' => array(
'path' => array(
......@@ -43690,7 +43648,6 @@
'file' => '',
))
->execute();
$connection->schema()->createTable('node', array(
'fields' => array(
'nid' => array(
......@@ -44185,7 +44142,6 @@
'translate' => '0',
))
->execute();
$connection->schema()->createTable('node_access', array(
'fields' => array(
'nid' => array(
......@@ -44256,7 +44212,6 @@
'grant_delete' => '0',
))
->execute();
$connection->schema()->createTable('node_comment_statistics', array(
'fields' => array(
'nid' => array(
......@@ -44405,7 +44360,6 @@
'comment_count' => '1',
))
->execute();
$connection->schema()->createTable('node_counter', array(
'fields' => array(
'nid' => array(
......@@ -44552,7 +44506,6 @@
'timestamp' => '1534014763',
))
->execute();
$connection->schema()->createTable('node_revisions', array(
'fields' => array(
'nid' => array(
......@@ -44902,7 +44855,6 @@
'format' => '1',
))
->execute();
$connection->schema()->createTable('node_type', array(
'fields' => array(
'type' => array(
......@@ -45202,7 +45154,6 @@
'orig_type' => 'test_story',
))
->execute();
$connection->schema()->createTable('permission', array(
'fields' => array(
'pid' => array(
......@@ -45268,7 +45219,6 @@
'tid' => '0',
))
->execute();
$connection->schema()->createTable('profile_fields', array(
'fields' => array(
'fid' => array(
......@@ -45501,7 +45451,6 @@
'options' => '',
))
->execute();
$connection->schema()->createTable('profile_values', array(
'fields' => array(
'fid' => array(
......@@ -45718,7 +45667,6 @@
'value' => '1',
))
->execute();
$connection->schema()->createTable('role', array(
'fields' => array(
'rid' => array(
......@@ -45766,7 +45714,6 @@
'name' => 'migrate test role 3 that is longer than thirty two characters',
))
->execute();
$connection->schema()->createTable('semaphore', array(
'fields' => array(
'name' => array(
......@@ -47072,7 +47019,6 @@
'info' => 'a:13:{s:4:"name";s:10:"Pushbutton";s:11:"description";s:52:"Tabled, multi-column theme in blue and orange tones.";s:7:"version";s:4:"6.38";s:4:"core";s:3:"6.x";s:6:"engine";s:11:"phptemplate";s:7:"project";s:6:"drupal";s:9:"datestamp";s:10:"1456343372";s:7:"regions";a:5:{s:4:"left";s:12:"Left sidebar";s:5:"right";s:13:"Right sidebar";s:7:"content";s:7:"Content";s:6:"header";s:6:"Header";s:6:"footer";s:6:"Footer";}s:8:"features";a:10:{i:0;s:20:"comment_user_picture";i:1;s:7:"favicon";i:2;s:7:"mission";i:3;s:4:"logo";i:4;s:4:"name";i:5;s:17:"node_user_picture";i:6;s:6:"search";i:7;s:6:"slogan";i:8;s:13:"primary_links";i:9;s:15:"secondary_links";}s:11:"stylesheets";a:1:{s:3:"all";a:1:{s:9:"style.css";s:27:"themes/pushbutton/style.css";}}s:7:"scripts";a:1:{s:9:"script.js";s:27:"themes/pushbutton/script.js";}s:10:"screenshot";s:32:"themes/pushbutton/screenshot.png";s:3:"php";s:5:"4.3.5";}',
))
->execute();
$connection->schema()->createTable('term_data', array(
'fields' => array(
'tid' => array(
......@@ -47270,7 +47216,6 @@
'trid' => '0',
))
->execute();
$connection->schema()->createTable('term_hierarchy', array(
'fields' => array(
'tid' => array(
......@@ -47365,7 +47310,6 @@
'parent' => '5',
))
->execute();
$connection->schema()->createTable('term_node', array(
'fields' => array(
'nid' => array(
......@@ -47439,7 +47383,6 @@
'tid' => '8',
))
->execute();
$connection->schema()->createTable('term_relation', array(
'fields' => array(
'trid' => array(
......@@ -47603,7 +47546,6 @@
'weight' => '0',
))
->execute();
$connection->schema()->createTable('url_alias', array(
'fields' => array(
'pid' => array(
......@@ -47693,7 +47635,6 @@
'language' => '',
))
->execute();
$connection->schema()->createTable('users', array(
'fields' => array(
'uid' => array(
......@@ -48015,7 +47956,6 @@
'timezone_id' => '0',
))
->execute();
$connection->schema()->createTable('users_roles', array(
'fields' => array(
'uid' => array(
......@@ -48082,7 +48022,6 @@
'rid' => '5',
))
->execute();
$connection->schema()->createTable('variable', array(
'fields' => array(
'name' => array(
......@@ -49349,7 +49288,6 @@
'value' => 's:1:"1";',
))
->execute();
$connection->schema()->createTable('vocabulary', array(
'fields' => array(
'vid' => array(
......@@ -49549,7 +49487,6 @@
'language' => '',
))
->execute();
$connection->schema()->createTable('vocabulary_node_types', array(
'fields' => array(
'vid' => array(
......@@ -49607,7 +49544,6 @@
'type' => 'story',
))
->execute();
$connection->schema()->createTable('watchdog', array(
'fields' => array(
'wid' => array(
......@@ -371,7 +371,6 @@
'timestamp' => '1444945246',
))
->execute();
$connection->schema()->createTable('actions', array(
'fields' => array(
'aid' => array(
......@@ -545,7 +544,6 @@
'label' => 'Block current user',
))
->execute();
$connection->schema()->createTable('aggregator_category', array(
'fields' => array(
'cid' => array(
......@@ -735,7 +733,6 @@
'block' => '5',
))
->execute();
$connection->schema()->createTable('aggregator_item', array(
'fields' => array(
'iid' => array(
......@@ -900,7 +897,6 @@
'guid' => 'post:18829',
))
->execute();
$connection->schema()->createTable('authmap', array(
'fields' => array(
'aid' => array(
......@@ -1816,7 +1812,6 @@
'i18n_mode' => '0',
))
->execute();
$connection->schema()->createTable('block_custom', array(
'fields' => array(
'bid' => array(
......@@ -1862,7 +1857,6 @@
'format' => 'filtered_html',
))
->execute();
$connection->schema()->createTable('block_node_type', array(
'fields' => array(
'module' => array(
......@@ -1928,7 +1922,6 @@
'rid' => '2',
))
->execute();
$connection->schema()->createTable('blocked_ips', array(
'fields' => array(
'iid' => array(
......@@ -1960,7 +1953,6 @@
'ip' => '111.111.111.111',
))
->execute();
$connection->schema()->createTable('book', array(
'fields' => array(
'mlid' => array(
......@@ -1992,33 +1984,32 @@
));
$connection->insert('book')
->fields(array(
'mlid',
'nid',
'bid',
))
->values(array(
'mlid' => '480',
'nid' => '4',
'bid' => '4',
))
->values(array(
'mlid' => '481',
'nid' => '6',
'bid' => '4',
))
->values(array(
'mlid' => '482',
'nid' => '2',
'bid' => '4',
))
->values(array(
'mlid' => '483',
'nid' => '1',
'bid' => '8',
))
->execute();
->fields(array(
'mlid',
'nid',
'bid',
))
->values(array(
'mlid' => '480',
'nid' => '4',
'bid' => '4',
))
->values(array(
'mlid' => '481',
'nid' => '6',
'bid' => '4',
))
->values(array(
'mlid' => '482',
'nid' => '2',
'bid' => '4',
))
->values(array(
'mlid' => '483',
'nid' => '1',
'bid' => '8',
))
->execute();
$connection->schema()->createTable('cache', array(
'fields' => array(
'cid' => array(
......@@ -2711,7 +2702,6 @@
'language' => 'is',
))
->execute();
$connection->schema()->createTable('contact', array(
'fields' => array(
'cid' => array(
......@@ -2773,7 +2763,6 @@
'selected' => '1',
))
->execute();
$connection->schema()->createTable('ctools_css_cache', array(
'fields' => array(
'cid' => array(
......@@ -2914,7 +2903,6 @@
'locked' => '1',
))
->execute();
$connection->schema()->createTable('date_formats', array(
'fields' => array(
'dfid' => array(
......@@ -3170,7 +3158,6 @@
'locked' => '0',
))
->execute();
$connection->schema()->createTable('entity_translation', array(
'fields' => array(
'entity_type' => array(
......@@ -3327,42 +3314,6 @@
'created' => '1529615813',
'changed' => '1529615813',
))
->values(array(
'entity_type' => 'taxonomy_term',
'entity_id' => '4',
'revision_id' => '4',
'language' => 'en',
'source' => '',
'uid' => '1',
'status' => '1',
'translate' => '0',
'created' => '1531922259',
'changed' => '1531922259',
))
->values(array(
'entity_type' => 'taxonomy_term',
'entity_id' => '4',
'revision_id' => '4',
'language' => 'fr',
'source' => 'en',
'uid' => '2',
'status' => '1',
'translate' => '1',
'created' => '1531922267',
'changed' => '1531922268',
))
->values(array(
'entity_type' => 'taxonomy_term',
'entity_id' => '4',
'revision_id' => '4',
'language' => 'is',
'source' => 'en',
'uid' => '1',
'status' => '0',
'translate' => '0',
'created' => '1531922278',
'changed' => '1531922279',
))
->values(array(
'entity_type' => 'user',
'entity_id' => '2',
......@@ -3399,8 +3350,43 @@
'created' => '1531663925',
'changed' => '1531663925',
))
->values(array(
'entity_type' => 'taxonomy_term',
'entity_id' => '4',
'revision_id' => '4',
'language' => 'en',
'source' => '',
'uid' => '1',
'status' => '1',
'translate' => '0',
'created' => '1531922259',
'changed' => '1531922259',
))
->values(array(
'entity_type' => 'taxonomy_term',
'entity_id' => '4',
'revision_id' => '4',
'language' => 'fr',
'source' => 'en',
'uid' => '2',
'status' => '1',
'translate' => '1',
'created' => '1531922267',
'changed' => '1531922268',
))