mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Nested folders: Enable folder migration (#61936)
This commit is contained in:
parent
7eb01b1813
commit
a502a2d1f8
@ -4,7 +4,6 @@ import (
|
||||
"github.com/grafana/grafana/pkg/services/sqlstore/migrator"
|
||||
)
|
||||
|
||||
// nolint:unused // this is temporarily unused during feature development
|
||||
func addFolderMigrations(mg *migrator.Migrator) {
|
||||
mg.AddMigration("create folder table", migrator.NewAddTableMigration(folderv1()))
|
||||
|
||||
@ -23,8 +22,8 @@ func addFolderMigrations(mg *migrator.Migrator) {
|
||||
}))
|
||||
}
|
||||
|
||||
// nolint:unused // this is temporarily unused during feature development
|
||||
func folderv1() migrator.Table {
|
||||
// Do not make any changes to this schema; introduce new migrations for further changes
|
||||
return migrator.Table{
|
||||
Name: "folder",
|
||||
Columns: []*migrator.Column{
|
||||
|
@ -107,12 +107,7 @@ func (*OSSMigrations) AddMigration(mg *Migrator) {
|
||||
|
||||
AddExternalAlertmanagerToDatasourceMigration(mg)
|
||||
|
||||
// TODO: This migration will be enabled later in the nested folder feature
|
||||
// implementation process. It is on hold so we can continue working on the
|
||||
// store implementation without impacting any grafana instances built off
|
||||
// main.
|
||||
//
|
||||
// addFolderMigrations(mg)
|
||||
addFolderMigrations(mg)
|
||||
}
|
||||
|
||||
func addMigrationLogMigrations(mg *Migrator) {
|
||||
|
Loading…
Reference in New Issue
Block a user