From 3fe81b3c3f809e1b24e110ccf50618124c975ad4 Mon Sep 17 00:00:00 2001 From: owensmallwood Date: Tue, 17 Jan 2023 12:18:12 -0600 Subject: [PATCH] PublicDashboards: Add share column to public dashboards table (#61102) Adds share column to public dashboards table --- pkg/services/sqlstore/migrations/dashboard_public_mig.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/services/sqlstore/migrations/dashboard_public_mig.go b/pkg/services/sqlstore/migrations/dashboard_public_mig.go index f3e932f45ce..252d95e0aaa 100644 --- a/pkg/services/sqlstore/migrations/dashboard_public_mig.go +++ b/pkg/services/sqlstore/migrations/dashboard_public_mig.go @@ -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'", + })) }