summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Ryan2011-02-05 17:57:46 (GMT)
committer Mike Ryan2011-02-05 17:57:46 (GMT)
commit231d05a76eae46e7b7dabaed33845bb1d21be3a4 (patch)
tree75816ce05d1a4a45ea2ea653abea8795b4b34dc9
parente58c5f678dc9eb1c02214c5b2f9dfcdad59b7d74 (diff)
#1050348 by Steven Jones: Check map table existence in correct DB
-rw-r--r--CHANGELOG.txt1
-rw-r--r--plugins/sources/sqlmap.inc2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index deb00da..fc52a8d 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -12,6 +12,7 @@ Features and enhancements
Let a node migration set node_revisions.uid. Thats the 'last edited by' user
Bug fixes
+- #1050348 - Check map table existence in correct DB.
- #1028824 - Errors during registry rebuild trigger fatal error.
Fix highwater handling to deal with duplicate values.
- #990640 - Help people trying to upgrade from Migrate V1.
diff --git a/plugins/sources/sqlmap.inc b/plugins/sources/sqlmap.inc
index 025fe04..c49d71f 100644
--- a/plugins/sources/sqlmap.inc
+++ b/plugins/sources/sqlmap.inc
@@ -76,7 +76,7 @@ class MigrateSQLMap extends MigrateMap {
*/
protected function ensureTables() {
if (!$this->ensured) {
- if (!dbtng_table_exists($this->mapTable)) {
+ if (!$this->connection->schema()->tableExists($this->mapTable)) {
// Generate appropriate schema info for the map and message tables,
// and map from the source field names to the map/msg field names
$count = 1;