Skip to content

Commit 6d83326

Browse files
committed
fix(test): make sure search_path includes required schemas for pgmq
1 parent 58f7e84 commit 6d83326

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

nix/ext/tests/pgmq.nix

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,13 @@ self.inputs.nixpkgs.lib.nixos.runTest {
4747
services.postgresql = {
4848
enable = true;
4949
package = (postgresqlWithExtension psql_15);
50-
settings = (installedExtension "15").defaultSettings or { };
50+
settings = {
51+
search_path = "\"$user\", public, auth, extensions";
52+
};
53+
initialScript = pkgs.writeText "postgres-init.sql" ''
54+
CREATE SCHEMA auth;
55+
CREATE SCHEMA extensions;
56+
'';
5157
};
5258

5359
specialisation.postgresql17.configuration = {

0 commit comments

Comments
 (0)