summaryrefslogtreecommitdiffstats
path: root/migrate.module
diff options
context:
space:
mode:
authorMike Ryan2009-11-06 19:07:33 +0000
committerMike Ryan2009-11-06 19:07:33 +0000
commit8554fd507d3b9325fe63de761f490b961af7afd8 (patch)
treefec3120cc24df1e8066a572082b159ebec5326f3 /migrate.module
parent27f48e8b3371b991877049580a09e2d29f81c3b7 (diff)
#625006 by jmather: Clear sources with string ids
Diffstat (limited to 'migrate.module')
-rwxr-xr-xmigrate.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/migrate.module b/migrate.module
index 11ce356..6932ef3 100755
--- a/migrate.module
+++ b/migrate.module
@@ -403,8 +403,8 @@ function migrate_content_process_clear($mcsid, &$messages = array(), &$options =
// @TODO: Should return success/failure. Problem: node_delete doesn't return anything...
migrate_invoke_all("delete_$contenttype", $row->destid);
timer_start('clear map/msg');
- db_query("DELETE FROM {" . $maptable . "} WHERE sourceid=%d", $row->sourceid);
- db_query("DELETE FROM {" . $msgtablename . "} WHERE sourceid=%d AND level=%d",
+ db_query("DELETE FROM {" . $maptable . "} WHERE sourceid='%s'", $row->sourceid);
+ db_query("DELETE FROM {" . $msgtablename . "} WHERE sourceid='%s' AND level=%d",
$row->sourceid, MIGRATE_MESSAGE_INFORMATIONAL);
timer_stop('clear map/msg');
$deleted++;