Unverified Commit 42f8f463 authored by Morgan Jones's avatar Morgan Jones
Browse files

nixos/mattermost: require Postgres for version 11+

parent ac446745
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -966,6 +966,13 @@ in
            or hostname, and services.mattermost.port to specify the port separately.
          '';
        }
        {
          # Can't use MySQL on version 11.
          assertion = versionAtLeast cfg.package.version "11" -> cfg.database.driver == "postgres";
          message = ''
            Only Postgres is supported as the database driver in Mattermost 11 and later.
          '';
        }
      ];
    })
    (mkIf cfg.matterircd.enable {