Dashboards: Add feature restore dashboards backend (#83131)
Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
This commit is contained in:
co-authored by
Sofia Papagiannaki
parent
edae5fc791
commit
42d75ac737
@@ -234,4 +234,13 @@ func addDashboardMigration(mg *Migrator) {
|
||||
mg.AddMigration("Add isPublic for dashboard", NewAddColumnMigration(dashboardV2, &Column{
|
||||
Name: "is_public", Type: DB_Bool, Nullable: false, Default: "0",
|
||||
}))
|
||||
|
||||
mg.AddMigration("Add deleted for dashboard", NewAddColumnMigration(dashboardV2, &Column{
|
||||
Name: "deleted", Type: DB_DateTime, Nullable: true,
|
||||
}))
|
||||
|
||||
mg.AddMigration("Add index for deleted", NewAddIndexMigration(dashboardV2, &Index{
|
||||
Cols: []string{"deleted"},
|
||||
Type: IndexType,
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user