You are here

function migrate_example_wine_data_account in Migrate 6.2

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

File

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

Code

function migrate_example_wine_data_account() {
  $data = array(
    array(
      1,
      1,
      '2010-03-30 10:31:05',
      '2010-04-30 18:25:24',
      '2010-04-30 14:01:02',
      'darren',
      'M',
      'dpass',
      'ddarren@example.com',
      'darren@example.com',
      'All about the Australians',
      '5',
    ),
    array(
      3,
      0,
      '2007-03-15 10:31:05',
      '2007-06-10 04:11:38',
      '2007-06-10 04:11:38',
      'emily',
      'F',
      'insecure',
      'emily@example.com',
      'emily@example.com',
      'Sommelier to the stars',
      '18',
    ),
    array(
      9,
      1,
      '2004-02-29 10:31:05',
      '2004-02-29 10:31:05',
      '2004-02-29 10:31:05',
      'fonzie',
      NULL,
      'bike',
      'thefonz@example.com',
      'arthur@example.com',
      'Aaay!',
      '5,18',
    ),
  );
  foreach ($data as $row) {
    db_query("INSERT INTO {migrate_example_wine_account}\n              (accountid, status, posted, last_access, last_login, name, sex,\n                password, mail, original_mail, sig, positions)\n              VALUES(%d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')", $row);
  }
}