mirror of https://github.com/coder/coder.git
fix: Downgrade embedded PostgreSQL (#3453)
This was causing a new data path to occur, which broke existing installs. It needs to use the same path and upgrade instead.
This commit is contained in:
parent
fd73d6dd0d
commit
d6d9cf9b30
|
@ -1153,7 +1153,7 @@ func startBuiltinPostgres(ctx context.Context, cfg config.Root, logger slog.Logg
|
|||
stdlibLogger := slog.Stdlib(ctx, logger.Named("postgres"), slog.LevelDebug)
|
||||
ep := embeddedpostgres.NewDatabase(
|
||||
embeddedpostgres.DefaultConfig().
|
||||
Version(embeddedpostgres.V14).
|
||||
Version(embeddedpostgres.V13).
|
||||
BinariesPath(filepath.Join(cfg.PostgresPath(), "bin")).
|
||||
DataPath(filepath.Join(cfg.PostgresPath(), "data")).
|
||||
RuntimePath(filepath.Join(cfg.PostgresPath(), "runtime")).
|
||||
|
|
Loading…
Reference in New Issue