Skip to content

Commit

Permalink
Fix annotation table patch template in controller schema
Browse files Browse the repository at this point in the history
  • Loading branch information
cderici committed Jan 10, 2024
1 parent 8b8c1f9 commit f2c9b07
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion domain/schema/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func ControllerDDL() *schema.Schema {
func annotationTablePatch(table string) string {
return fmt.Sprintf(`
CREATE TABLE annotation_%[1]s (
application_uuid TEXT NOT NULL,
%[1]s_uuid TEXT NOT NULL,
key TEXT NOT NULL,
value TEXT NOT NULL,
PRIMARY KEY (%[1]s_uuid, key)
Expand Down
3 changes: 0 additions & 3 deletions domain/schema/schema_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ func (s *schemaSuite) TestControllerDDLApply(c *gc.C) {
"annotation_machine",
"annotation_unit",
"annotation_model",
// "annotation_charm",
// "annotation_storage_filesystem",
// "annotation_storage_volume",

// Autocert cache
"autocert_cache",
Expand Down

0 comments on commit f2c9b07

Please sign in to comment.