PublicDashboards: Add share column to public dashboards table (#61102)

Adds share column to public dashboards table
This commit is contained in:
owensmallwood
2023-01-17 12:18:12 -06:00
committed by GitHub
parent 6ed7c77516
commit 3fe81b3c3f

View File

@@ -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'",
}))
}