The reflect option is deprecated. Use method instead.
authorAnt Zucaro <azucaro@gmail.com>
Sun, 11 Aug 2013 14:58:39 +0000 (10:58 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Sun, 11 Aug 2013 14:58:39 +0000 (10:58 -0400)
xonstat/models.py

index c6d5790..a407184 100644 (file)
@@ -294,7 +294,8 @@ def initialize_db(engine=None):
     DBSession.configure(bind=engine)
     Base.metadata.bind = engine
     Base.metadata.create_all(engine)
     DBSession.configure(bind=engine)
     Base.metadata.bind = engine
     Base.metadata.create_all(engine)
-    MetaData = sqlalchemy.MetaData(bind=engine, reflect=True)
+    MetaData = sqlalchemy.MetaData(bind=engine)
+    MetaData.reflect()
 
     # assign all those tables to an object
     achievements_table = MetaData.tables['achievements']
 
     # assign all those tables to an object
     achievements_table = MetaData.tables['achievements']