File tree Expand file tree Collapse file tree 5 files changed +14
-20
lines changed
migrations/db/init-scripts Expand file tree Collapse file tree 5 files changed +14
-20
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ postgres_major:
9
9
10
10
# Full version strings for each major version
11
11
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 "
15
15
16
16
# Non Postgres Extensions
17
17
pgbouncer_release : " 1.19.0"
Original file line number Diff line number Diff line change 154
154
x :
155
155
x != ./nix/ext/timescaledb.nix &&
156
156
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
159
158
) ourExtensions ;
160
159
161
160
orioledbExtensions = orioleFilteredExtensions ++ [ ./nix/ext/orioledb.nix ] ;
162
- dbExtensions17 = orioleFilteredExtensions ;
161
+ dbExtensions17 = builtins . filter (
162
+ x :
163
+ x != ./nix/ext/pgjwt.nix
164
+ ) orioleFilteredExtensions ;
163
165
getPostgresqlPackage = version :
164
166
pkgs . postgresql . "postgresql_${ version } " ;
165
167
# Create a 'receipt' file for a given postgresql package. This is a way
Original file line number Diff line number Diff line change 22
22
begin
23
23
if exists (select 1 from pg_available_extensions where name = ' pgjwt' ) then
24
24
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;
26
28
end if;
27
29
end if;
28
30
end $$;
Original file line number Diff line number Diff line change 61
61
begin
62
62
if exists (select 1 from pg_available_extensions where name = ' pgjwt' ) then
63
63
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;
65
67
end if;
66
68
end if;
67
69
end $$;
Original file line number Diff line number Diff line change @@ -170,18 +170,6 @@ check_orioledb_ready() {
170
170
return 1
171
171
}
172
172
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
-
185
173
perform_dump () {
186
174
local max_attempts=3
187
175
local attempt=1
You can’t perform that action at this time.
0 commit comments