Gizra / euei-euwi-migrate

Migrate from euei.net and euwi.net to C4D
0 stars 0 forks source link

The OG Membership migration errors. #112

Closed solker closed 9 years ago

solker commented 9 years ago
(/home/ilya/projects/migrate/c4d/sites/all/modules/contrib/migrate/plugins/sources/sqlmap.inc:337)
(/home/ilya/projects/migrate/c4d/sites/all/modules/contrib/migrate/plugins/sources/sqlmap.inc:337)
(/home/ilya/projects/migrate/c4d/sites/all/modules/contrib/migrate/plugins/sources/sqlmap.inc:337)
(/home/ilya/projects/migrate/c4d/sites/all/modules/contrib/migrate/plugins/sources/sqlmap.inc:337)
(/home/ilya/projects/migrate/c4d/sites/all/modules/contrib/migrate/plugins/sources/sqlmap.inc:337)
(/home/ilya/projects/migrate/c4d/sites/all/modules/contrib/migrate/plugins/sources/sqlmap.inc:337)
(/home/ilya/projects/migrate/c4d/sites/all/modules/contrib/migrate/plugins/sources/sqlmap.inc:337)
(/home/ilya/projects/migrate/c4d/sites/all/modules/contrib/migrate/plugins/sources/sqlmap.inc:337)
(/home/ilya/projects/migrate/c4d/sites/all/modules/contrib/migrate/plugins/sources/sqlmap.inc:337)
(/home/ilya/projects/migrate/c4d/sites/all/modules/contrib/migrate/plugins/sources/sqlmap.inc:337)
(/home/ilya/projects/migrate/c4d/sites/all/modules/contrib/migrate/plugins/sources/sqlmap.inc:337)
Duplicate entry '0-6435' for key 'PRIMARY' query: INSERT INTO og_uid (og_role, is_active, is_admin, uid, created, changed) VALUES (0, 1, 0, 6435, 0, 0) File /home/ilya/projects/migrate/c4d/includes/database.mysql.inc, line 135
solker commented 9 years ago

Strange, destid1 not exists in migration table by default. I think it's because i have added additional col destid2 before i run migration.

Solution is

$ret = array();
db_add_field($ret, 'migrate_map_eumembership', 'destid1', array('type' => 'int', 'length' => 11));