diff --git a/domain/objectstore/service/service.go b/domain/objectstore/service/service.go index ebd556f6fc7..d10ae1c6359 100644 --- a/domain/objectstore/service/service.go +++ b/domain/objectstore/service/service.go @@ -7,12 +7,13 @@ import ( "context" "fmt" + "github.com/juju/utils/v3" + "github.com/juju/juju/core/changestream" coreobjectstore "github.com/juju/juju/core/objectstore" "github.com/juju/juju/core/watcher" "github.com/juju/juju/domain" "github.com/juju/juju/domain/objectstore" - "github.com/juju/utils/v3" ) // State describes retrieval and persistence methods for the coreobjectstore. diff --git a/domain/schema/model.go b/domain/schema/model.go index 4283040a6c7..61527b0a0df 100644 --- a/domain/schema/model.go +++ b/domain/schema/model.go @@ -9,6 +9,7 @@ import ( const ( tableModelConfig tableNamespaceID = iota + 1 + tableModelObjectStoreMetadata ) // ModelDDL is used to create model databases. @@ -19,6 +20,7 @@ func ModelDDL() *schema.Schema { modelConfig, changeLogTriggersForTable("model_config", "key", tableModelConfig), objectStoreMetadataSchema, + changeLogTriggersForTable("object_store_metadata_path", "path", tableModelObjectStoreMetadata), applicationSchema, nodeSchema, unitSchema, @@ -38,7 +40,8 @@ func changeLogModelNamespace() schema.Patch { // constants above. return schema.MakePatch(` INSERT INTO change_log_namespace VALUES - (1, 'model_config', 'model config changes based on config key') + (1, 'model_config', 'model config changes based on config key'), + (2, 'object_store_metadata_path', 'object store metadata path changes based on the path') `) }