-- Add column to register when authorisation webhook was received ALTER TABLE adyen_sessions ADD COLUMN IF NOT EXISTS authorisation_webhook_timestamp TIMESTAMP WITH TIME ZONE; -- Make adyen_session_id unique CREATE UNIQUE INDEX ON adyen_sessions(adyen_session_id);