Commit 04a94ce3 by Carl Bergquist Committed by Torkel Ödegaard

adds unique index for org_id+folder_id+title on dashboards (#10766)

parent 8ce2074e
......@@ -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,
}))
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment