From 70ee2ada505197b71176f1974fc9be11a3b6cbea Mon Sep 17 00:00:00 2001 From: Fredrik Ringqvist <35255659+fredrikphotowall@users.noreply.github.com> Date: Mon, 10 Jun 2024 12:50:09 +0200 Subject: [PATCH] Add adyen_sessions.authorisation_webhook_timestamp and make adyen_session_id unique (#403) --- migrations/000.482.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 migrations/000.482.sql diff --git a/migrations/000.482.sql b/migrations/000.482.sql new file mode 100644 index 0000000..0f3d5ca --- /dev/null +++ b/migrations/000.482.sql @@ -0,0 +1,5 @@ +-- 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);