| 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.
|
|
|