瀏覽代碼

Drops unique index orgid_slug from dashboards.

bergquist 8 年之前
父節點
當前提交
6d2a555866
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      pkg/services/sqlstore/migrations/dashboard_mig.go

+ 4 - 0
pkg/services/sqlstore/migrations/dashboard_mig.go

@@ -163,4 +163,8 @@ func addDashboardMigration(mg *Migrator) {
 	mg.AddMigration("Add unique index dashboard_org_id_uid", NewAddIndexMigration(dashboardV2, &Index{
 	mg.AddMigration("Add unique index dashboard_org_id_uid", NewAddIndexMigration(dashboardV2, &Index{
 		Cols: []string{"org_id", "uid"}, Type: UniqueIndex,
 		Cols: []string{"org_id", "uid"}, Type: UniqueIndex,
 	}))
 	}))
+
+	mg.AddMigration("Remove unique index org_id_slug", NewDropIndexMigration(dashboardV2, &Index{
+		Cols: []string{"org_id", "slug"}, Type: UniqueIndex,
+	}))
 }
 }