You are here

function migrate_example_wine_data_producer in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 migrate_example/wine.install.inc \migrate_example_wine_data_producer()
1 call to migrate_example_wine_data_producer()
migrate_example_wine_install in migrate_example/wine.install.inc

File

migrate_example/wine.install.inc, line 905
Set up for the wine (advanced) example.

Code

function migrate_example_wine_data_producer() {
  $data = array(
    array(
      1,
      'Montes',
      'Fine Chilean winery',
      'Great!',
      9,
    ),
    array(
      2,
      'Archeo',
      'Sicilia!',
      NULL,
      3,
    ),
  );
  foreach ($data as $row) {
    db_query("INSERT INTO {migrate_example_wine_producer}\n              (producerid, name, body, excerpt, accountid)\n              VALUES(%d, '%s', '%s', '%s', %d)", $row);
  }
}