Skip to content

Commit f63aacb

Browse files
committed
Fix of build-extension-update-files.pl
1 parent 9abdc8c commit f63aacb

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

sql/scripts/build-extension-update-files.pl

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,19 +223,19 @@ sub generate_upgrade_script {
223223
}
224224

225225
# updating to 3.4+
226-
if ($old_mayor == 2 or ($old_mayor == 3 and $old_minor < 4)) {
226+
if ($old_minor < 3.4) {
227227
push @commands, drop_special_case_function("pgr_maxcardinalitymatch(text,boolean)");
228228
}
229229

230230
# updating to 3.5+
231-
if ($old_mayor == 2 or ($old_mayor == 3 && $old_minor < 5)) {
231+
if ($old_minor < 3.5) {
232232
push @commands, drop_special_case_function("pgr_dijkstra(text,anyarray,bigint,boolean)");
233233
push @commands, drop_special_case_function("pgr_dijkstra(text,bigint,anyarray,boolean)");
234234
push @commands, drop_special_case_function("pgr_dijkstra(text,bigint,bigint,boolean)");
235235
}
236236

237237
# updating to 3.6+
238-
if ($old_mayor == 2 or ($old_mayor == 3 && $old_minor < 6)) {
238+
if ($old_minor < 3.6) {
239239
push @commands, drop_special_case_function("pgr_withpointsksp(text, text, bigint, bigint, integer, boolean, boolean, char, boolean)");
240240
push @commands, drop_special_case_function("pgr_astar(text,anyarray,bigint,boolean,integer,double precision,double precision)");
241241
push @commands, drop_special_case_function("pgr_astar(text,bigint,anyarray,boolean,integer,double precision,double precision)");
@@ -251,7 +251,7 @@ sub generate_upgrade_script {
251251
}
252252

253253
# updating to 3.7+
254-
if ($old_mayor == 2 or ($old_mayor == 3 && $old_minor < 7)) {
254+
if ($old_mayor >= 3.0 && $old_minor < 3.7) {
255255
push @commands, drop_special_case_function("pgr_primbfs(text,anyarray,bigint)");
256256
push @commands, drop_special_case_function("pgr_primbfs(text,bigint,bigint)");
257257
push @commands, drop_special_case_function("pgr_primdfs(text,anyarray,bigint)");
@@ -271,7 +271,7 @@ sub generate_upgrade_script {
271271
}
272272

273273
# updating to 3.7+
274-
if ($old_mayor == 3 && $old_minor >= 4 && $old_minor < 8) {
274+
if ($old_minor >= 3.4 && $old_minor < 3.8) {
275275
push @commands, drop_special_case_function("pgr_findcloseedges(text,geometry,double precision,integer,boolean,boolean)");
276276
push @commands, drop_special_case_function("pgr_findcloseedges(text,geometry[],double precision,integer,boolean,boolean)");
277277
}
@@ -285,9 +285,12 @@ sub generate_upgrade_script {
285285
if ($old_mayor == 2) {
286286
push @commands, update_from_version_2();
287287
}
288+
289+
=pod
288290
if ("$old_version" eq "3.0.0") {
289291
push @commands, update_from_version_3_0_0();
290292
}
293+
=cut
291294

292295
# UGH! someone change the definition of the TYPE or reused an existing
293296
# TYPE name which is VERY BAD because other people might be dependent
@@ -453,6 +456,7 @@ sub others_3_0_0 {
453456
'"",seq,vid,target_array');
454457
return @commands;
455458
}
459+
456460
=pod
457461
*****************************************************************
458462
code beyond this point is v2.6 specific

0 commit comments

Comments
 (0)