mirror of
https://github.com/grafana/grafana.git
synced 2025-09-28 06:14:07 +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,
|
Nullable: false,
|
||||||
Default: "'public'",
|
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