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