Public Dashboards: Can toggle annotations in modal (#57312)

adds toggle for pubdash annotations
This commit is contained in:
owensmallwood
2022-10-21 13:42:14 -06:00
committed by GitHub
parent 7f3b567657
commit 0b8fb543fc
14 changed files with 176 additions and 83 deletions
@@ -65,4 +65,13 @@ func addPublicDashboardMigration(mg *Migrator) {
// rename table
addTableRenameMigration(mg, "dashboard_public_config", "dashboard_public", "v2")
// some migrations (like AddColumn) need the table object to be passed in. So we need to make sure its updated.
dashboardPublicCfgV2.Name = "dashboard_public"
mg.AddMigration("add annotations_enabled column", NewAddColumnMigration(dashboardPublicCfgV2, &Column{
Name: "annotations_enabled",
Type: DB_Bool,
Nullable: false,
Default: "0",
}))
}