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

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: Add documentation link 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..37dc2d50c75ac5c8613d2347c17570597e97c519 100644
--- a/ct/go/db/db.go
+++ b/ct/go/db/db.go
@@ -68,6 +68,7 @@ var v1_up = []string{
chromium_patch TEXT,
blink_patch TEXT,
skia_patch TEXT,
+ benchmark_patch TEXT,
dogben 2015/10/20 15:17:26 I don't think this is supposed to be here.
rmistry 2015/10/20 17:47:48 Oops. Removed.
ts_added BIGINT NOT NULL,
ts_started BIGINT,
ts_completed BIGINT,
@@ -249,6 +250,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 +312,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.

Powered by Google App Engine
This is Rietveld 408576698