mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
PublicDashboards: Add share column to public dashboards table (#61102)
Adds share column to public dashboards table
This commit is contained in:
@@ -84,4 +84,12 @@ func addPublicDashboardMigration(mg *Migrator) {
|
||||
|
||||
mg.AddMigration("delete orphaned public dashboards", NewRawSQLMigration(
|
||||
"DELETE FROM dashboard_public WHERE dashboard_uid NOT IN (SELECT uid FROM dashboard)"))
|
||||
|
||||
mg.AddMigration("add share column", NewAddColumnMigration(dashboardPublicCfgV2, &Column{
|
||||
Name: "share",
|
||||
Type: DB_NVarchar,
|
||||
Length: 64,
|
||||
Nullable: false,
|
||||
Default: "'public'",
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user