From be39baa2f0a7b8d2aa144e3f4a548d49bab4979f Mon Sep 17 00:00:00 2001 From: Rory Doak Date: Thu, 9 Jan 2025 14:54:07 +0000 Subject: [PATCH] revert script changes --- scripts/seed-database/write/published_flows.sql | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/seed-database/write/published_flows.sql b/scripts/seed-database/write/published_flows.sql index d4f70d2381..f54aba1adc 100644 --- a/scripts/seed-database/write/published_flows.sql +++ b/scripts/seed-database/write/published_flows.sql @@ -5,9 +5,8 @@ CREATE TEMPORARY TABLE sync_published_flows ( flow_id uuid, summary text, publisher_id int, - created_at timestamptz, - has_send_component boolean -); + created_at timestamptz + ); \copy sync_published_flows (id, data, flow_id, summary, publisher_id, created_at) FROM '/tmp/published_flows.csv' (FORMAT csv, DELIMITER ';'); @@ -17,14 +16,15 @@ INSERT INTO published_flows ( flow_id, summary, publisher_id, - created_at) + created_at + ) SELECT id, data, flow_id, summary, publisher_id, - created_at, + created_at FROM sync_published_flows ON CONFLICT (id) DO UPDATE SET