-
|
I use the self-hosted ory hydra variant. When upgrading from v2.3.0 to v25.4.0 I got an error message during the sql migration. My PostgreSQL Version is 11.22, and the problem occurs at the following sql statement:
see in persistence/sql/migrations/20251030112809000000_flow_expires_at.postgres.up.sql I looked at the ory hydra documentation, and I only found the information that "The SQL adapter supports PostgreSQL 9.6+...", see https://www.ory.com/docs/hydra/self-hosted/dependencies-environment. What is the minimum Postgres Version that Ory Hydra 25.4.0 supports? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
This looks more like a migration bug or a missing version-compatibility guard than an intended change of minimum PostgreSQL version - just to be sure, could you try the migration on a newer version? |
Beta Was this translation helpful? Give feedback.
I cannot test it in the exactly same setting with a different postgres version. I could test it locally on my laptop later.
However, I think the reason for the error is that GENERATED ALWAYS AS ... STORED is not supported by postgres 11. I looked at the postgres docu and it seems to be supported by Version 12+, see https://www.postgresql.org/docs/12/sql-altertable.html. For version 12 it says: