diff --git a/src/main/resources/db/migration/V19__account_email_token_timestamp_utc.sql b/src/main/resources/db/migration/V19__account_email_token_timestamp_utc.sql new file mode 100644 index 0000000..b088691 --- /dev/null +++ b/src/main/resources/db/migration/V19__account_email_token_timestamp_utc.sql @@ -0,0 +1,7 @@ +-- AccountEmailToken nutzt java.time.Instant. Hibernate erwartet dafür PostgreSQL- +-- Zeitstempel mit Zeitzone; V18 wurde auf bereits laufenden Systemen zuerst angewendet. +ALTER TABLE account_email_tokens + ALTER COLUMN expires_at TYPE TIMESTAMP WITH TIME ZONE + USING expires_at AT TIME ZONE 'UTC', + ALTER COLUMN consumed_at TYPE TIMESTAMP WITH TIME ZONE + USING consumed_at AT TIME ZONE 'UTC';