From 9067d6b3f7d03f7fe659b5a02db98e9ba7b25509 Mon Sep 17 00:00:00 2001 From: Fredrik Ringqvist <35255659+fredrikphotowall@users.noreply.github.com> Date: Wed, 14 Aug 2024 11:39:45 +0200 Subject: [PATCH] Ingrid sessions table (#410) --- migrations/000.490.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 migrations/000.490.sql diff --git a/migrations/000.490.sql b/migrations/000.490.sql new file mode 100644 index 0000000..4b4def3 --- /dev/null +++ b/migrations/000.490.sql @@ -0,0 +1,10 @@ +drop table if exists ingrid_deliveries; +CREATE TABLE ingrid_deliveries ( + id INTEGER GENERATED ALWAYS AS IDENTITY PRIMARY KEY, + order_id INTEGER REFERENCES orders (id) NOT NULL, + ingrid_checkout_session_id TEXT NOT NULL, + complete_session_response TEXT, + completed_at TIMESTAMP WITH TIME ZONE DEFAULT NULL, + UNIQUE (order_id), + UNIQUE (ingrid_checkout_session_id) +);