Author: eallen
Date: 2010-06-30 16:30:26 -0400 (Wed, 30 Jun 2010)
New Revision: 4060
Modified:
mgmt/newdata/cumin/python/cumin/admin.py
Log:
Temp fix to allow drop-schema and add-schema for non-persistent schemas
Modified: mgmt/newdata/cumin/python/cumin/admin.py
===================================================================
--- mgmt/newdata/cumin/python/cumin/admin.py 2010-06-30 20:28:45 UTC (rev 4059)
+++ mgmt/newdata/cumin/python/cumin/admin.py 2010-06-30 20:30:26 UTC (rev 4060)
@@ -13,10 +13,16 @@
self.app.model.sql_model.write_create_ddl(writer)
return writer.getvalue()
+ def remove_qmf_schema(self):
+ self.app.model.sql_model._schemas = \
+ [x for x in self.app.model.sql_model._schemas if not x.type ==
"transient"]
+
def create_schema(self, cursor):
+ self.remove_qmf_schema()
cursor.execute(self.get_schema())
def drop_schema(self, cursor):
+ self.remove_qmf_schema()
writer = StringIO()
self.app.model.sql_model.write_drop_ddl(writer)
sql = writer.getvalue()
Show replies by date