You are here

function migrate_example_wine_data_account_updates in Migrate 6.2

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

File

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

Code

function migrate_example_wine_data_account_updates() {
  $data = array(
    array(
      1,
      NULL,
    ),
    array(
      3,
      'M',
    ),
    array(
      9,
      'F',
    ),
  );
  foreach ($data as $row) {
    db_query("INSERT INTO {migrate_example_wine_account_updates}\n              (accountid, sex)\n              VALUES(%d, '%s')", $row);
  }
}