Selaa lähdekoodia

db: add new column uid to the dashboard table. #7883

Marcus Efraimsson 8 vuotta sitten
vanhempi
commit
401b01e1e6
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5 0
      pkg/services/sqlstore/migrations/dashboard_mig.go

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

@@ -150,4 +150,9 @@ func addDashboardMigration(mg *Migrator) {
 	mg.AddMigration("Add column has_acl in dashboard", NewAddColumnMigration(dashboardV2, &Column{
 		Name: "has_acl", Type: DB_Bool, Nullable: false, Default: "0",
 	}))
+
+	// new uid column
+	mg.AddMigration("Add column uid in dashboard", NewAddColumnMigration(dashboardV2, &Column{
+		Name: "uid", Type: DB_NVarchar, Length: 12, Nullable: true,
+	}))
 }