Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1751)

Unified Diff: ct/go/db/db.go

Issue 1411423003: [CT] Add ability to run unlanded benchmarks on Chromium Perf (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Fix errcheck Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ct/go/db/db.go
diff --git a/ct/go/db/db.go b/ct/go/db/db.go
index a54a54678c43e8d9559346c7ee6271903932793f..927d78ca97f9b93de83f7fd4b80daf7e37934bb0 100644
--- a/ct/go/db/db.go
+++ b/ct/go/db/db.go
@@ -249,6 +249,14 @@ var v10_down = []string{
`ALTER TABLE ChromiumPerfTasks CONVERT TO CHARACTER SET utf8`,
}
+var v11_up = []string{
+ `ALTER TABLE ChromiumPerfTasks ADD benchmark_patch longtext NOT NULL DEFAULT ""`,
+}
+
+var v11_down = []string{
+ `ALTER TABLE ChromiumPerfTasks DROP benchmark_patch`,
+}
+
// Define the migration steps.
// Note: Only add to this list, once a step has landed in version control it
// must not be changed.
@@ -303,6 +311,11 @@ var migrationSteps = []database.MigrationStep{
MySQLUp: v10_up,
MySQLDown: v10_down,
},
+ // version 11: Add benchmark_patch column to ChromiumPerfTasks.
+ {
+ MySQLUp: v11_up,
+ MySQLDown: v11_down,
+ },
}
// MigrationSteps returns the database migration steps.
« no previous file with comments | « ct/go/ctfe/chromium_perf/chromium_perf.go ('k') | ct/go/master_scripts/run_chromium_perf_on_workers/main.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698