From d27d488dba72e9013e6440a0a38996346af2aef9 Mon Sep 17 00:00:00 2001 From: Jakob Lechner Date: Thu, 7 Dec 2023 17:34:22 +0000 Subject: [PATCH] Fix pretix schema migration issue Fixes django.db.migrations.exceptions.MigrationSchemaMissing --- pkgs/pretix/module.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/pretix/module.nix b/pkgs/pretix/module.nix index 0903eb7..da43907 100644 --- a/pkgs/pretix/module.nix +++ b/pkgs/pretix/module.nix @@ -193,6 +193,7 @@ in CREATE ROLE ${postgresql.user} WITH LOGIN PASSWORD '${postgresql.password}' CREATEDB; CREATE DATABASE ${postgresql.database}; GRANT ALL PRIVILEGES ON DATABASE ${postgresql.database} TO ${postgresql.user}; + ALTER DATABASE ${postgresql.database} OWNER TO ${postgresql.user}; ''; };