Hi guys
wanting to programmaticaly move a custom node type (music) from my drupal 6 to drupal 7 i have the following script, what it does it connects the drupal 6 and 7 databases to a single drupal 7 install. it then pulls the data from drupal6 and stores it in drupal 7.
The script below succesfuly brings over the music content types and saves the title and node body, but some extra fields i cant figure out how to bring over, any advice would be appreciated.
my drupal music node type has:
Title
Body
CCK Image field
File field mp3 field
Taxonomy (artist name)
As mentioned the below script brings title and body ok, how can i bring in the rest? in my code i have tried saving the taxonomy but im not sure why the code doesnt bring it over.
I first edit settings.php on D7 so it connects to both databases:
<?php
$databases = array (
'default' =>
array (
'default' =>
array (
'database' => 'drupal7',
'username' => 'root',
'password' => '',
'host' => 'localhost',
'port' => '',
'driver' => 'mysql',
'prefix' => '',
),
),'custom' =>
array (
'default' =>
array (
'database' => 'custom',
'username' => 'root',
'password' => '',
'host' => 'localhost',
'port' => '',
'driver' => 'mysql',