mirror of
https://github.com/grafana/grafana.git
synced 2025-09-28 02:43:55 +08:00
PublicDashboards: Backfills share column with default value (#63407)
adds migration to backfill empty share column fields with default value of public
This commit is contained in:
@ -92,4 +92,8 @@ func addPublicDashboardMigration(mg *Migrator) {
|
||||
Nullable: false,
|
||||
Default: "'public'",
|
||||
}))
|
||||
|
||||
mg.AddMigration("backfill empty share column fields with default of public", NewRawSQLMigration(
|
||||
"UPDATE dashboard_public SET share='public' WHERE share=''",
|
||||
))
|
||||
}
|
||||
|
Reference in New Issue
Block a user