Skip to content

Commit f31df49

Browse files
committed
feat: multiple versions for the pg_jsonschema extension
Build multiple versions of the pg_jsonschema extension to on different PostgreSQL versions. Add test for the extensions and their upgrade on PostgreSQL 15 and 17.
1 parent 24430ee commit f31df49

File tree

13 files changed

+7961
-93
lines changed

13 files changed

+7961
-93
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ result*
1919
.history
2020
.envrc
2121
.direnv
22+
.nixos-test-history
2223

2324

2425
#IDE

nix/cargo-pgrx/default.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ let
5757
};
5858
in
5959
{
60+
cargo-pgrx_0_10_2 = mkCargoPgrx {
61+
version = "0.10.2";
62+
hash = "sha256-FqjfbJmSy5UCpPPPk4bkEyvQCnaH9zYtkI7txgIn+ls=";
63+
cargoHash = "sha256-syZ3cQq8qDHBLvqmNDGoxeK6zXHJ47Jwkw3uhaXNCzI=";
64+
};
6065
cargo-pgrx_0_11_3 = mkCargoPgrx {
6166
version = "0.11.3";
6267
hash = "sha256-UHIfwOdXoJvR4Svha6ud0FxahP1wPwUtviUwUnTmLXU=";

nix/cargo-pgrx/versions.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
{
2+
"0.10.2": {
3+
"hash": "sha256-FqjfbJmSy5UCpPPPk4bkEyvQCnaH9zYtkI7txgIn+ls=",
4+
"rust": {
5+
"1.76.0": {
6+
"cargoHash": "sha256-syZ3cQq8qDHBLvqmNDGoxeK6zXHJ47Jwkw3uhaXNCzI="
7+
}
8+
}
9+
},
210
"0.11.2": {
311
"hash": "sha256-8NlpMDFaltTIA8G4JioYm8LaPJ2RGKH5o6sd6lBHmmM=",
412
"rust": {

nix/checks.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,10 @@
309309
;
310310
}
311311
// pkgs.lib.optionalAttrs (system == "x86_64-linux") {
312+
pg_jsonschema = import ./ext/tests/pg_jsonschema.nix {
313+
inherit self;
314+
inherit pkgs;
315+
};
312316
wrappers = import ./ext/tests/wrappers.nix {
313317
inherit self;
314318
inherit pkgs;

nix/ext/pg_jsonschema.nix

Lines changed: 0 additions & 92 deletions
This file was deleted.

0 commit comments

Comments
 (0)