Skip to content

Commit 119e0f9

Browse files
committed
Merge branch 'develop' into km/add-custom-auth-query-test
2 parents 3d9a87f + 8d32169 commit 119e0f9

File tree

5 files changed

+14
-20
lines changed

5 files changed

+14
-20
lines changed

ansible/vars.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ postgres_major:
99

1010
# Full version strings for each major version
1111
postgres_release:
12-
postgresorioledb-17: "17.0.1.069-orioledb-pgbouncer-rc-1"
13-
postgres17: "17.4.1.019-pgbouncer-rc-1"
14-
postgres15: "15.8.1.076-pgbouncer-rc-1"
12+
postgresorioledb-17: "17.0.1.068-orioledb"
13+
postgres17: "17.4.1.018"
14+
postgres15: "15.8.1.075"
1515

1616
# Non Postgres Extensions
1717
pgbouncer_release: "1.19.0"

flake.nix

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,14 @@
154154
x:
155155
x != ./nix/ext/timescaledb.nix &&
156156
x != ./nix/ext/timescaledb-2.9.1.nix &&
157-
x != ./nix/ext/plv8.nix &&
158-
x != ./nix/ext/pgjwt.nix
157+
x != ./nix/ext/plv8.nix
159158
) ourExtensions;
160159

161160
orioledbExtensions = orioleFilteredExtensions ++ [ ./nix/ext/orioledb.nix ];
162-
dbExtensions17 = orioleFilteredExtensions;
161+
dbExtensions17 = builtins.filter (
162+
x:
163+
x != ./nix/ext/pgjwt.nix
164+
) orioleFilteredExtensions;
163165
getPostgresqlPackage = version:
164166
pkgs.postgresql."postgresql_${version}";
165167
# Create a 'receipt' file for a given postgresql package. This is a way

migrations/db/init-scripts/00000000000000-initial-schema.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ do $$
2222
begin
2323
if exists (select 1 from pg_available_extensions where name = 'pgjwt') then
2424
if not exists (select 1 from pg_extension where extname = 'pgjwt') then
25-
create extension if not exists pgjwt with schema "extensions" cascade;
25+
if current_setting('server_version_num')::int / 10000 = 15 then
26+
create extension if not exists pgjwt with schema "extensions" cascade;
27+
end if;
2628
end if;
2729
end if;
2830
end $$;

nix/tests/prime.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ do $$
6161
begin
6262
if exists (select 1 from pg_available_extensions where name = 'pgjwt') then
6363
if not exists (select 1 from pg_extension where extname = 'pgjwt') then
64-
create extension if not exists pgjwt;
64+
if current_setting('server_version_num')::int / 10000 = 15 then
65+
create extension if not exists pgjwt;
66+
end if;
6567
end if;
6668
end if;
6769
end $$;

nix/tools/dbmate-tool.sh.in

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -170,18 +170,6 @@ check_orioledb_ready() {
170170
return 1
171171
}
172172

173-
trim_schema() {
174-
case "$CURRENT_SYSTEM" in
175-
"x86_64-darwin"|"aarch64-darwin")
176-
sed -i '' '/INSERT INTO public.schema_migrations/,$d' "./db/schema.sql"
177-
echo "Matched: $CURRENT_SYSTEM"
178-
;;
179-
*)
180-
sed -i '/INSERT INTO public.schema_migrations/,$d' "./db/schema.sql"
181-
;;
182-
esac
183-
}
184-
185173
perform_dump() {
186174
local max_attempts=3
187175
local attempt=1

0 commit comments

Comments
 (0)