milahu / nixpkgs

Nix Packages collection
MIT License
0 stars 0 forks source link

error: postgresql_11 was removed, please upgrade your postgresql version. #30

Open milahu opened 4 months ago

milahu commented 4 months ago

caused by

{
  services.gitea.enable = true;

would be nice if the error message would be more helpful

how do i migrate the database data?

run pg_upgrade as described in the nixos manual

if you have no database data, you can skip this step

how do i update the postgresql version?

add

{
  services.postgresql.package = pkgs.postgresql_16;

related

Document postgresql upgrade

How to upgrade postgresql in NixOS?

For semi-automated PostgreSQL upgrade: Can the wrapped PostgreSQL be accessed from nix expressions?