File authentik-django-migrate-datadir.patch of Package authentik
--- a/lifecycle/migrate.py 2026-02-03 19:27:25.664303936 +0100
+++ b/lifecycle/migrate.py 2026-02-05 16:02:02.505255360 +0100
@@ -91,7 +91,7 @@
try:
wait_for_lock(conn, curr)
for migration_path in sorted(
- Path(__file__).parent.absolute().glob("system_migrations/*.py")
+ Path('__AK_DATADIR__').glob("system_migrations/*.py")
):
spec = spec_from_file_location("lifecycle.system_migrations", migration_path)
if not spec: