Permalink
Browse files

oldimporter definitive fix for HSTORE bug

  • Loading branch information...
1 parent 83858ca commit af839f19d79bc072a7e95d1efac783ff31b232a5 @nemesisdesign nemesisdesign committed Feb 24, 2014
@@ -35,6 +35,8 @@ def allow_migrate(self, db, model):
if db != 'old_nodeshot':
return True
return False
+
+ allow_syncdb = allow_migrate
class OldNodeshotRouter(object):
@@ -68,4 +70,6 @@ def allow_migrate(self, db, model):
return model._meta.app_label == 'old_nodeshot'
elif model._meta.app_label == 'old_nodeshot':
return False
- return None
+ return None
+
+ allow_syncdb = allow_migrate
@@ -281,9 +281,6 @@ def retrieve_nodes(self):
""" retrieve nodes from old mysql DB """
self.verbose('retrieving nodes from old mysql DB...')
- # tmp
- OldNode.objects.all()
-
self.old_nodes = list(OldNode.objects.all())
self.message('retrieved %d nodes' % len(self.old_nodes))
@@ -35,6 +35,7 @@
# 'PASSWORD': '*********',
# 'HOST': 'remote-ip',
# 'PORT': 'remote-port',
+# 'HAS_HSTORE': False
# }
# DATABASE_ROUTERS = [
# 'nodeshot.extra.oldimporter.db.DefaultRouter',

0 comments on commit af839f1

Please sign in to comment.