Fixing Final Migration Issues
So, this will be the final post specifically related to the migration of data and files from Drupal 6 to Drupal 8.
Further posts will be focussed on Drupal 8, specifically the Themes and Templates and any specific customisation that may be required.
Before that, There are some migration issues to resolve.
Audio Files Linked to Nodes in Drupal 6 Did not Migrate to Drupal 8
I am disappointed with this specific issue, mainly as I was expecting more from the drupal-upgrade functionality from Drupal 6 to 8.
I have tried searching the forums online but as far as I can tell, unless my method was at fault the migration of files linked to nodes under d6_upload is not supported at time of writing this post.
Other than raising a support ticket, I decided to identify the Drupal 8 tables that were needed and write a SQL script using PHP to migrate the data.
To make the process a bit simpler, first the Drupal 6 ‘upload’ table was exported and imported to the Drupal 8 Database - named ‘d6upload’
Then a File named d6_upload_to_d8.php was created in the Drupal 8 root directory with the following:
The main considerations in this code was converting the Drupal 6 Revisions and page node weight to the Drupal 8 equivalent.
The script was run by entering http://localhost:8888/d6_upload_to_d8.php in the browser.
Configuring Drupal 8 File Upload Page Content Type Fields
Within the Structure » Content Types » Page, a new Field ‘file upload’ was created to allow a Drupal 8 Content Author to upload specified files (mainly audio)
So there were now the following Page Fields - File Upload, Sidebar or Sidebar2 :
However, these were not being shown on the webpage. Again, this may be a specific issue or limitation of the migration, though to resolve this Drupal 8 Views need to be created and added to the Block Layout.
Creating Drupal 8 Views to display additional Page Fields
Adding Drupal 8 Views to a Block Layout