mirror of
https://github.com/grafana/grafana.git
synced 2024-11-23 09:26:43 -06:00
Added missing common.go
This commit is contained in:
parent
f3f79792ab
commit
16fd256225
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user