diff --git a/infrastructure/hydra/postgres/immich-db.yaml b/infrastructure/hydra/postgres/immich-db.yaml index c09e5e7..bec4a51 100644 --- a/infrastructure/hydra/postgres/immich-db.yaml +++ b/infrastructure/hydra/postgres/immich-db.yaml @@ -10,6 +10,10 @@ spec: extensions: - ensure: present name: vector + - ensure: present + name: cube + - ensure: present + name: earthdistance name: immich owner: immich status: {} diff --git a/pkg/postgres/postgres.go b/pkg/postgres/postgres.go index 43fb04e..1f49ee4 100644 --- a/pkg/postgres/postgres.go +++ b/pkg/postgres/postgres.go @@ -79,18 +79,18 @@ func ImmichDatabase() pg.Database { Ensure: pg.EnsurePresent, }, }, - // { - // DatabaseObjectSpec: pg.DatabaseObjectSpec{ - // Name: "cube", - // Ensure: pg.EnsurePresent, - // }, - // }, - // { - // DatabaseObjectSpec: pg.DatabaseObjectSpec{ - // Name: "earthdistance", - // Ensure: pg.EnsurePresent, - // }, - // }, + { + DatabaseObjectSpec: pg.DatabaseObjectSpec{ + Name: "cube", + Ensure: pg.EnsurePresent, + }, + }, + { + DatabaseObjectSpec: pg.DatabaseObjectSpec{ + Name: "earthdistance", + Ensure: pg.EnsurePresent, + }, + }, }, } return kube_cnpg.NewDatabase(meta, spec)