File tree Expand file tree Collapse file tree 3 files changed +56
-2
lines changed Expand file tree Collapse file tree 3 files changed +56
-2
lines changed Original file line number Diff line number Diff line change 2222begin
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;
2830end $$;
Original file line number Diff line number Diff line change @@ -998,3 +998,53 @@ CREATE EVENT TRIGGER pgrst_drop_watch ON sql_drop
998998-- PostgreSQL database dump complete
999999--
10001000
1001+ <<<<<<< HEAD
1002+ =======
1003+
1004+ --
1005+ -- Dbmate schema migrations
1006+ --
1007+
1008+ INSERT INTO public .schema_migrations (version) VALUES
1009+ (' 00000000000000' ),
1010+ (' 00000000000001' ),
1011+ (' 00000000000002' ),
1012+ (' 00000000000003' ),
1013+ (' 10000000000000' ),
1014+ (' 20211115181400' ),
1015+ (' 20211118015519' ),
1016+ (' 20211122051245' ),
1017+ (' 20211124212715' ),
1018+ (' 20211130151719' ),
1019+ (' 20220118070449' ),
1020+ (' 20220126121436' ),
1021+ (' 20220224211803' ),
1022+ (' 20220317095840' ),
1023+ (' 20220321174452' ),
1024+ (' 20220322085208' ),
1025+ (' 20220404205710' ),
1026+ (' 20220609081115' ),
1027+ (' 20220613123923' ),
1028+ (' 20220713082019' ),
1029+ (' 20221028101028' ),
1030+ (' 20221103090837' ),
1031+ (' 20221207154255' ),
1032+ (' 20230201083204' ),
1033+ (' 20230224042246' ),
1034+ (' 20230306081037' ),
1035+ (' 20230327032006' ),
1036+ (' 20230529180330' ),
1037+ (' 20231013070755' ),
1038+ (' 20231017062225' ),
1039+ (' 20231020085357' ),
1040+ (' 20231130133139' ),
1041+ (' 20240124080435' ),
1042+ (' 20240606060239' ),
1043+ (' 20241031003909' ),
1044+ (' 20241215003910' ),
1045+ (' 20250205060043' ),
1046+ (' 20250205144616' ),
1047+ (' 20250218031949' ),
1048+ (' 20250220051611' ),
1049+ (' 20250312095419' );
1050+ >>>>>>> 8231e3ec (feat: adjust to only create for pg 15 .x)
Original file line number Diff line number Diff line change 6161begin
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;
6769end $$;
You can’t perform that action at this time.
0 commit comments