public.packages
view should take app.package_upgrades
into account as well for its latest_version column.
#161
Labels
bug
Something isn't working
Currently the
public.packages
view is defined like this:Notice how in the lateral clause only
app.package_versions
are read but there's noapp.package_upgrades
. This results in the latest version being returned as less if there is one base version with an upgrade.To reproduce publish an extension with
my_ext--1.0.0.sql
andmy_ext--1.0.0--2.0.0.sql
files and notice how the latest version reported is1.0.0
.To fix, the view should take the maximum version from among the
app.package_versions
'sversion
column andapp.package_upgrade
'sto_version
column.The text was updated successfully, but these errors were encountered: