mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-01-25 05:58:29 -06:00
Add PGVersionsDesc for ordered PostgreSQL version selection
This commit is contained in:
@@ -60,7 +60,8 @@ var (
|
||||
PSQL: "/usr/lib/postgresql/18/bin/psql",
|
||||
}}
|
||||
|
||||
PGVersions = []PGVersion{PG13, PG14, PG15, PG16, PG17, PG18}
|
||||
PGVersions = []PGVersion{PG13, PG14, PG15, PG16, PG17, PG18}
|
||||
PGVersionsDesc = []PGVersion{PG18, PG17, PG16, PG15, PG14, PG13}
|
||||
)
|
||||
|
||||
type Client struct{}
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
func PGVersionSelectOptions(selectedVersion sql.NullString) nodx.Node {
|
||||
return nodx.Map(
|
||||
postgres.PGVersions,
|
||||
postgres.PGVersionsDesc,
|
||||
func(pgVersion postgres.PGVersion) nodx.Node {
|
||||
return nodx.Option(
|
||||
nodx.Value(pgVersion.Value.Version),
|
||||
|
||||
Reference in New Issue
Block a user