mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
adds unique index for org_id+folder_id+title on dashboards (#10766)
This commit is contained in:
parent
8ce2074eb2
commit
04a94ce396
@ -167,4 +167,8 @@ func addDashboardMigration(mg *Migrator) {
|
||||
mg.AddMigration("Remove unique index org_id_slug", NewDropIndexMigration(dashboardV2, &Index{
|
||||
Cols: []string{"org_id", "slug"}, Type: UniqueIndex,
|
||||
}))
|
||||
|
||||
mg.AddMigration("Add unique index for dashboard_org_id_title_folder_id", NewAddIndexMigration(dashboardV2, &Index{
|
||||
Cols: []string{"org_id", "folder_id", "title"}, Type: UniqueIndex,
|
||||
}))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user