From 16fd2562256e0a6751a86e55276024ad876ebdf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 24 Feb 2015 19:10:41 +0100 Subject: [PATCH] Added missing common.go --- pkg/services/sqlstore/migrations/common.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/services/sqlstore/migrations/common.go b/pkg/services/sqlstore/migrations/common.go index 68089aab143..cf0b39f1a35 100644 --- a/pkg/services/sqlstore/migrations/common.go +++ b/pkg/services/sqlstore/migrations/common.go @@ -15,9 +15,8 @@ func addDropAllIndicesMigrations(mg *Migrator, versionSuffix string, table Table func addTableIndicesMigrations(mg *Migrator, versionSuffix string, table Table) { for _, index := range table.Indices { - migration := NewAddIndexMigration(table, index) migrationId := fmt.Sprintf("create index %s - %s", index.XName(table.Name), versionSuffix) - mg.AddMigration(migrationId, migration) + mg.AddMigration(migrationId, NewAddIndexMigration(table, index)) } }