EntityStore: Rename ObjectStore to EntityStore (part 2) (#59616)

This commit is contained in:
Ryan McKinley
2022-11-30 17:52:15 -05:00
committed by GitHub
parent ab40f8b8a3
commit 14a080ec12
15 changed files with 45 additions and 45 deletions
@@ -18,7 +18,7 @@ func getLatinPathColumn(name string) *migrator.Column {
}
}
func addObjectStorageMigrations(mg *migrator.Migrator) {
func addEntityStoreMigrations(mg *migrator.Migrator) {
grnLength := 256 // len(tenant)~8 + len(kind)!16 + len(kind)~128 = 256
tables := []migrator.Table{}
tables = append(tables, migrator.Table{
@@ -83,8 +83,8 @@ func (*OSSMigrations) AddMigration(mg *Migrator) {
addCommentMigrations(mg)
}
if mg.Cfg.IsFeatureToggleEnabled(featuremgmt.FlagObjectStore) {
addObjectStorageMigrations(mg)
if mg.Cfg.IsFeatureToggleEnabled(featuremgmt.FlagEntityStore) {
addEntityStoreMigrations(mg)
}
}
+1 -1
View File
@@ -489,7 +489,7 @@ var featuresEnabledDuringTests = []string{
featuremgmt.FlagDashboardPreviews,
featuremgmt.FlagDashboardComments,
featuremgmt.FlagPanelTitleSearch,
featuremgmt.FlagObjectStore,
featuremgmt.FlagEntityStore,
}
// InitTestDBWithMigration initializes the test DB given custom migrations.