[LNT] r276216 - Cleanups to the code-size migration
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 20 17:10:38 PDT 2016
Author: cmatthews
Date: Wed Jul 20 19:10:37 2016
New Revision: 276216
URL: http://llvm.org/viewvc/llvm-project?rev=276216&view=rev
Log:
Cleanups to the code-size migration
Modified:
lnt/trunk/lnt/server/db/migrations/upgrade_9_to_10.py
Modified: lnt/trunk/lnt/server/db/migrations/upgrade_9_to_10.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/db/migrations/upgrade_9_to_10.py?rev=276216&r1=276215&r2=276216&view=diff
==============================================================================
--- lnt/trunk/lnt/server/db/migrations/upgrade_9_to_10.py (original)
+++ lnt/trunk/lnt/server/db/migrations/upgrade_9_to_10.py Wed Jul 20 19:10:37 2016
@@ -11,11 +11,10 @@ import lnt.server.db.migrations.upgrade_
def upgrade(engine):
# Create a session.
- print "Running my upgrade"
session = sqlalchemy.orm.sessionmaker(engine)()
real_sample_type = session.query(upgrade_0_to_1.SampleType).\
- filter_by(name = "Real").first()
+ filter_by(name="Real").first()
ts = session.query(upgrade_0_to_1.TestSuite).filter_by(name='nts').first()
code_size = upgrade_0_to_1.SampleField(name="code_size",
@@ -38,6 +37,3 @@ ALTER TABLE "NT_Sample"
ADD COLUMN "code_size" FLOAT
""")
session.commit()
- print "Finished my upgrade."
-
-
More information about the llvm-commits
mailing list