diff -u b/core/modules/migrate_drupal/tests/fixtures/drupal7.php b/core/modules/migrate_drupal/tests/fixtures/drupal7.php --- b/core/modules/migrate_drupal/tests/fixtures/drupal7.php +++ b/core/modules/migrate_drupal/tests/fixtures/drupal7.php @@ -84,7 +84,7 @@ 'timer', 'timestamp', )) -->values(array( +->values([ 'aid' => '92', 'sid' => 'a8ksMY2GH4yXK0-PsLNAlCv4zNnapnyCpx4lryZDEfk', 'title' => '', @@ -94,7 +94,7 @@ 'uid' => '0', 'timer' => '655', 'timestamp' => '1444944970', -)) +]) ->values(array( 'aid' => '93', 'sid' => 'e89G2redQpxRTIndbV3qH8snVR621DqSQ2s4vciJedA', @@ -3852,7 +3852,7 @@ 'data' => 'a:7:{s:5:"label";s:14:"Term Reference";s:6:"widget";a:5:{s:6:"weight";s:2:"14";s:4:"type";s:21:"taxonomy_autocomplete";s:6:"module";s:8:"taxonomy";s:6:"active";i:0;s:8:"settings";a:2:{s:4:"size";i:60;s:17:"autocomplete_path";s:21:"taxonomy/autocomplete";}}s:8:"settings";a:1:{s:18:"user_register_form";b:0;}s:7:"display";a:1:{s:7:"default";a:4:{s:5:"label";s:5:"above";s:4:"type";s:6:"hidden";s:6:"weight";s:2:"13";s:8:"settings";a:0:{}}}s:8:"required";i:0;s:11:"description";s:0:"";s:13:"default_value";N;}', 'deleted' => '0', )) -->values(array( +->values([ 'id' => '42', 'field_id' => '25', 'field_name' => 'field_private_file', @@ -3860,7 +3860,7 @@ 'bundle' => 'test_content_type', 'data' => 'a:6:{s:5:"label";s:12:"Private file";s:6:"widget";a:5:{s:6:"weight";s:2:"19";s:4:"type";s:12:"file_generic";s:6:"module";s:4:"file";s:6:"active";i:1;s:8:"settings";a:1:{s:18:"progress_indicator";s:8:"throbber";}}s:8:"settings";a:5:{s:14:"file_directory";s:0:"";s:15:"file_extensions";s:3:"txt";s:12:"max_filesize";s:0:"";s:17:"description_field";i:0;s:18:"user_register_form";b:0;}s:7:"display";a:1:{s:7:"default";a:5:{s:5:"label";s:5:"above";s:4:"type";s:12:"file_default";s:8:"settings";a:0:{}s:6:"module";s:4:"file";s:6:"weight";i:18;}}s:8:"required";i:0;s:11:"description";s:0:"";}', 'deleted' => '0', -)) +]) ->execute(); $connection->schema()->createTable('field_data_body', array( @@ -5372,103 +5372,103 @@ ->execute(); $connection->schema()->createTable('field_data_field_private_file', array( - 'fields' => array( - 'entity_type' => array( + 'fields' => [ + 'entity_type' => [ 'type' => 'varchar', 'not null' => TRUE, 'length' => '128', 'default' => '', - ), - 'bundle' => array( + ], + 'bundle' => [ 'type' => 'varchar', 'not null' => TRUE, 'length' => '128', 'default' => '', - ), - 'deleted' => array( + ], + 'deleted' => [ 'type' => 'int', 'not null' => TRUE, 'size' => 'tiny', 'default' => '0', - ), - 'entity_id' => array( + ], + 'entity_id' => [ 'type' => 'int', 'not null' => TRUE, 'size' => 'normal', 'unsigned' => TRUE, - ), - 'revision_id' => array( + ], + 'revision_id' => [ 'type' => 'int', 'not null' => FALSE, 'size' => 'normal', 'unsigned' => TRUE, - ), - 'language' => array( + ], + 'language' => [ 'type' => 'varchar', 'not null' => TRUE, 'length' => '32', 'default' => '', - ), - 'delta' => array( + ], + 'delta' => [ 'type' => 'int', 'not null' => TRUE, 'size' => 'normal', 'unsigned' => TRUE, - ), - 'field_private_file_fid' => array( + ], + 'field_private_file_fid' => [ 'type' => 'int', 'not null' => FALSE, 'size' => 'normal', 'unsigned' => TRUE, - ), - 'field_private_file_display' => array( + ], + 'field_private_file_display' => [ 'type' => 'int', 'not null' => TRUE, 'size' => 'tiny', 'default' => '1', 'unsigned' => TRUE, - ), - 'field_private_file_description' => array( + ], + 'field_private_file_description' => [ 'type' => 'text', 'not null' => FALSE, 'size' => 'normal', - ), - ), - 'primary key' => array( + ], + ], + 'primary key' => [ 'entity_type', 'entity_id', 'deleted', 'delta', 'language', - ), - 'indexes' => array( - 'entity_type' => array( + ], + 'indexes' => [ + 'entity_type' => [ 'entity_type', - ), - 'bundle' => array( + ], + 'bundle' => [ 'bundle', - ), - 'deleted' => array( + ], + 'deleted' => [ 'deleted', - ), - 'entity_id' => array( + ], + 'entity_id' => [ 'entity_id', - ), - 'revision_id' => array( + ], + 'revision_id' => [ 'revision_id', - ), - 'language' => array( + ], + 'language' => [ 'language', - ), - 'field_private_file_fid' => array( + ], + 'field_private_file_fid' => [ 'field_private_file_fid', - ), - ), + ], + ], 'mysql_character_set' => 'utf8', -)); +]]; $connection->insert('field_data_field_private_file') -->fields(array( +->fields([ 'entity_type', 'bundle', 'deleted', @@ -5479,8 +5479,8 @@ 'field_private_file_fid', 'field_private_file_display', 'field_private_file_description', -)) -->values(array( +]) +->values([ 'entity_type' => 'node', 'bundle' => 'test_content_type', 'deleted' => '0', @@ -5491,7 +5491,7 @@ 'field_private_file_fid' => '4', 'field_private_file_display' => '1', 'field_private_file_description' => '', -)) +]) ->execute(); $connection->schema()->createTable('field_data_field_tags', array( @@ -7726,7 +7726,7 @@ 'delta' => '0', 'field_phone_value' => '99-99-99-99', )) -->values(array( +->values([ 'entity_type' => 'node', 'bundle' => 'test_content_type', 'deleted' => '0', @@ -7735,108 +7735,108 @@ 'language' => 'und', 'delta' => '0', 'field_phone_value' => '99-99-99-99', -)) +]) ->execute(); $connection->schema()->createTable('field_revision_field_private_file', array( - 'fields' => array( - 'entity_type' => array( + 'fields' => [ + 'entity_type' => [ 'type' => 'varchar', 'not null' => TRUE, 'length' => '128', 'default' => '', - ), - 'bundle' => array( + ], + 'bundle' => [ 'type' => 'varchar', 'not null' => TRUE, 'length' => '128', 'default' => '', - ), - 'deleted' => array( + ], + 'deleted' => [ 'type' => 'int', 'not null' => TRUE, 'size' => 'tiny', 'default' => '0', - ), - 'entity_id' => array( + ], + 'entity_id' => [ 'type' => 'int', 'not null' => TRUE, 'size' => 'normal', 'unsigned' => TRUE, - ), - 'revision_id' => array( + ], + 'revision_id' => [ 'type' => 'int', 'not null' => TRUE, 'size' => 'normal', 'unsigned' => TRUE, - ), - 'language' => array( + ], + 'language' => [ 'type' => 'varchar', 'not null' => TRUE, 'length' => '32', 'default' => '', - ), - 'delta' => array( + ], + 'delta' => [ 'type' => 'int', 'not null' => TRUE, 'size' => 'normal', 'unsigned' => TRUE, - ), - 'field_private_file_fid' => array( + ], + 'field_private_file_fid' => [ 'type' => 'int', 'not null' => FALSE, 'size' => 'normal', 'unsigned' => TRUE, - ), - 'field_private_file_display' => array( + ], + 'field_private_file_display' => [ 'type' => 'int', 'not null' => TRUE, 'size' => 'tiny', 'default' => '1', 'unsigned' => TRUE, - ), - 'field_private_file_description' => array( + ], + 'field_private_file_description' => [ 'type' => 'text', 'not null' => FALSE, 'size' => 'normal', - ), - ), - 'primary key' => array( + ], + ], + 'primary key' => [ 'entity_type', 'entity_id', 'revision_id', 'deleted', 'delta', 'language', - ), - 'indexes' => array( - 'entity_type' => array( + ], + 'indexes' => [ + 'entity_type' => [ 'entity_type', - ), - 'bundle' => array( + ], + 'bundle' => [ 'bundle', - ), - 'deleted' => array( + ], + 'deleted' => [ 'deleted', - ), - 'entity_id' => array( + ], + 'entity_id' => [ 'entity_id', - ), - 'revision_id' => array( + ], + 'revision_id' => [ 'revision_id', - ), - 'language' => array( + ], + 'language' => [ 'language', - ), - 'field_private_file_fid' => array( + ], + 'field_private_file_fid' => [ 'field_private_file_fid', - ), - ), + ], + ], 'mysql_character_set' => 'utf8', )); $connection->insert('field_revision_field_private_file') -->fields(array( +->fields([ 'entity_type', 'bundle', 'deleted', @@ -7847,8 +7847,8 @@ 'field_private_file_fid', 'field_private_file_display', 'field_private_file_description', -)) -->values(array( +]) +->values([ 'entity_type' => 'node', 'bundle' => 'test_content_type', 'deleted' => '0', @@ -7859,7 +7859,7 @@ 'field_private_file_fid' => '4', 'field_private_file_display' => '1', 'field_private_file_description' => '', -)) +]) ->execute(); $connection->schema()->createTable('field_revision_field_tags', array( @@ -8731,13 +8731,13 @@ 'id' => '2', 'count' => '1', )) -->values(array( +->values([ 'fid' => '3', 'module' => 'file', 'type' => 'node', 'id' => '1', 'count' => '1', -)) +]) ->execute(); $connection->schema()->createTable('filter', array(