From 9bb12b9afbf12aba9ead2dde3c17118fb26f78e5 Mon Sep 17 00:00:00 2001 From: Fredrik Ringqvist <35255659+fredrikphotowall@users.noreply.github.com> Date: Tue, 2 Jul 2024 19:22:25 +0300 Subject: [PATCH] Add orders.purchase_event_sent (#408) --- migrations/000.488.sql | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 migrations/000.488.sql diff --git a/migrations/000.488.sql b/migrations/000.488.sql new file mode 100644 index 0000000..22c995c --- /dev/null +++ b/migrations/000.488.sql @@ -0,0 +1,4 @@ +ALTER TABLE orders ADD COLUMN purchase_event_sent timestamp with time zone DEFAULT NULL; + +-- Populate existing fields so we won't resend purchase events on visits to thank you pages +UPDATE orders set purchase_event_sent = now(); \ No newline at end of file