[llvm-commits] [LNT] r162943 - /lnt/trunk/lnt/server/db/migrate.py
Daniel Dunbar
daniel at zuster.org
Thu Aug 30 14:31:45 PDT 2012
Author: ddunbar
Date: Thu Aug 30 16:31:45 2012
New Revision: 162943
URL: http://llvm.org/viewvc/llvm-project?rev=162943&view=rev
Log:
lnt.server.db.migrate: Add some compatibility fixes.
Modified:
lnt/trunk/lnt/server/db/migrate.py
Modified: lnt/trunk/lnt/server/db/migrate.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/db/migrate.py?rev=162943&r1=162942&r2=162943&view=diff
==============================================================================
--- lnt/trunk/lnt/server/db/migrate.py (original)
+++ lnt/trunk/lnt/server/db/migrate.py Thu Aug 30 16:31:45 2012
@@ -183,11 +183,12 @@
except sqlalchemy.exc.OperationalError,e:
# Filter on the DB-API error message. This is a bit flimsy, but works
# for SQLite at least.
- if 'no such table' not in e.orig.message:
+ if 'no such table' not in str(e.orig):
raise
# Create the SchemaVersion table.
Base.metadata.create_all(engine)
+ session.commit()
version_list = []
versions = dict((v.name, v)
More information about the llvm-commits
mailing list